Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
from inference.main import MultiModalPhi2
|
4 |
-
# from __future__ import annotations
|
5 |
-
from typing import Iterable
|
6 |
-
import gradio as gr
|
7 |
-
from gradio.themes.base import Base
|
8 |
-
from gradio.themes.utils import colors, fonts, sizes
|
9 |
-
import time
|
10 |
-
|
11 |
|
12 |
messages = []
|
13 |
|
@@ -97,8 +90,7 @@ with gr.Blocks() as demo:
|
|
97 |
prompt = gr.Textbox(
|
98 |
placeholder="Ask anything", lines=2, label="Query", value=None, scale=4
|
99 |
)
|
100 |
-
|
101 |
-
|
102 |
with gr.Row():
|
103 |
# Adding a Button
|
104 |
submit = gr.Button(value = "Submit", variant="primary")
|
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
from inference.main import MultiModalPhi2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
messages = []
|
6 |
|
|
|
90 |
prompt = gr.Textbox(
|
91 |
placeholder="Ask anything", lines=2, label="Query", value=None, scale=4
|
92 |
)
|
93 |
+
|
|
|
94 |
with gr.Row():
|
95 |
# Adding a Button
|
96 |
submit = gr.Button(value = "Submit", variant="primary")
|