ixxan commited on
Commit
ce05662
1 Parent(s): a4f0373

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -71,9 +71,9 @@ torch.hub.download_url_to_file('http://farm3.staticflickr.com/2710/4520550856_7a
71
  torch.hub.download_url_to_file('http://images.cocodataset.org/val2017/000000039769.jpg', 'cats.jpg')
72
 
73
  # Define home page variables
74
- image = gr.inputs.Image(type="pil")
75
- question = gr.inputs.Textbox(label="Question")
76
- answer = gr.outputs.Textbox(label="Predicted answer")
77
  examples = [["apple.jpg", "Qu'est-ce que c'est dans ma main?"], ["cats.jpg", "What are the cats doing?"]]
78
 
79
  demo = gr.Interface(fn=vqa_main,
 
71
  torch.hub.download_url_to_file('http://images.cocodataset.org/val2017/000000039769.jpg', 'cats.jpg')
72
 
73
  # Define home page variables
74
+ image = gr.Image(type="pil")
75
+ question = gr.Textbox(label="Question")
76
+ answer = gr.Textbox(label="Predicted answer")
77
  examples = [["apple.jpg", "Qu'est-ce que c'est dans ma main?"], ["cats.jpg", "What are the cats doing?"]]
78
 
79
  demo = gr.Interface(fn=vqa_main,