datdevsteve commited on
Commit
afae4f8
·
verified ·
1 Parent(s): 728c786

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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=[vision_image, vision_hint],
86
- outputs=[vision_out],
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",