Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
# from .demo_modelpart import InferenceDemo
|
2 |
import gradio as gr
|
3 |
import os
|
|
|
4 |
|
5 |
# import time
|
6 |
import cv2
|
@@ -324,10 +325,11 @@ with gr.Blocks(
|
|
324 |
# stop_btn = gr.Button(value="⏹️ Stop Generation", interactive=True)
|
325 |
regenerate_btn = gr.Button(value="🔄 Regenerate", interactive=True)
|
326 |
clear_btn = gr.Button(value="🗑️ Clear history", interactive=True)
|
|
|
327 |
|
328 |
chat_input = gr.MultimodalTextbox(
|
329 |
interactive=True,
|
330 |
-
file_types=["image"
|
331 |
placeholder="Enter message or upload file...",
|
332 |
show_label=False,
|
333 |
submit_btn="🚀 Send"
|
@@ -498,7 +500,7 @@ with gr.Blocks(
|
|
498 |
},
|
499 |
],
|
500 |
],
|
501 |
-
inputs=[
|
502 |
label="Image",
|
503 |
)
|
504 |
|
|
|
1 |
# from .demo_modelpart import InferenceDemo
|
2 |
import gradio as gr
|
3 |
import os
|
4 |
+
from threading import Thread
|
5 |
|
6 |
# import time
|
7 |
import cv2
|
|
|
325 |
# stop_btn = gr.Button(value="⏹️ Stop Generation", interactive=True)
|
326 |
regenerate_btn = gr.Button(value="🔄 Regenerate", interactive=True)
|
327 |
clear_btn = gr.Button(value="🗑️ Clear history", interactive=True)
|
328 |
+
|
329 |
|
330 |
chat_input = gr.MultimodalTextbox(
|
331 |
interactive=True,
|
332 |
+
file_types=["image"],
|
333 |
placeholder="Enter message or upload file...",
|
334 |
show_label=False,
|
335 |
submit_btn="🚀 Send"
|
|
|
500 |
},
|
501 |
],
|
502 |
],
|
503 |
+
inputs=[chat_input],
|
504 |
label="Image",
|
505 |
)
|
506 |
|