Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,13 +80,14 @@ with gr.Blocks(title="🩺 Nivra AI Agent") as demo:
|
|
| 80 |
vision_hint = gr.Textbox()
|
| 81 |
vision_out = gr.Textbox()
|
| 82 |
|
| 83 |
-
gr.Button().click(
|
| 84 |
vision_fn,
|
| 85 |
-
inputs=[
|
| 86 |
-
outputs=[
|
| 87 |
api_name="vision_fn",
|
| 88 |
)
|
| 89 |
|
|
|
|
| 90 |
# 🔴 DO NOT enable queue for Flutter SSE
|
| 91 |
demo.launch(
|
| 92 |
server_name="0.0.0.0",
|
|
|
|
| 80 |
vision_hint = gr.Textbox()
|
| 81 |
vision_out = gr.Textbox()
|
| 82 |
|
| 83 |
+
gr.Button(visible=False).click(
|
| 84 |
vision_fn,
|
| 85 |
+
inputs=[gr.Image(type="pil"), gr.Textbox()],
|
| 86 |
+
outputs=[gr.Textbox()],
|
| 87 |
api_name="vision_fn",
|
| 88 |
)
|
| 89 |
|
| 90 |
+
|
| 91 |
# 🔴 DO NOT enable queue for Flutter SSE
|
| 92 |
demo.launch(
|
| 93 |
server_name="0.0.0.0",
|