ManishThota commited on
Commit
3e161a0
1 Parent(s): d2a4b0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def gradio_predict(image, question, max_tokens):
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"),
 
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"),