iamrobotbear commited on
Commit
c6d106a
·
1 Parent(s): 3bf36bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,8 +39,8 @@ def blip2_interface(image, prompted_caption_text, vqa_question, chat_context):
39
  return image_caption, prompted_caption, vqa_answer, chat_response
40
 
41
  # Define Gradio input and output components
42
- image_input = gr.inputs.Image(type="numpy")
43
- text_input = gr.inputs.Text()
44
  output_text = gr.outputs.Textbox()
45
 
46
  # Create Gradio interface
@@ -53,4 +53,4 @@ iface = gr.Interface(
53
  )
54
 
55
  if __name__ == "__main__":
56
- iface.launch()
 
39
  return image_caption, prompted_caption, vqa_answer, chat_response
40
 
41
  # Define Gradio input and output components
42
+ image_input = gr.Image(type="numpy")
43
+ text_input = gr.Text()
44
  output_text = gr.outputs.Textbox()
45
 
46
  # Create Gradio interface
 
53
  )
54
 
55
  if __name__ == "__main__":
56
+ iface.launch()