Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ examples = [["data/week_01_page_024.png", 'Can you explain the slide?',100],
|
|
50 |
# Define the Gradio interface
|
51 |
iface = gr.Interface(
|
52 |
fn=gradio_predict,
|
53 |
-
inputs=[gr.Image(type="pil", label="Upload or Drag an Image"),
|
54 |
gr.Textbox(label="Question", placeholder="e.g. Can you explain the slide?", scale=4),
|
55 |
gr.Slider(2, 500, value=100, label="Token Count", info="Choose between 2 and 500")],
|
56 |
outputs=gr.TextArea(label="Answer"),
|
|
|
50 |
# Define the Gradio interface
|
51 |
iface = gr.Interface(
|
52 |
fn=gradio_predict,
|
53 |
+
inputs=[gr.Image(type="pil", label="Upload or Drag an Image", streaming=True),
|
54 |
gr.Textbox(label="Question", placeholder="e.g. Can you explain the slide?", scale=4),
|
55 |
gr.Slider(2, 500, value=100, label="Token Count", info="Choose between 2 and 500")],
|
56 |
outputs=gr.TextArea(label="Answer"),
|