ixxan commited on
Commit
b1438bb
1 Parent(s): 1b3fc99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -67,12 +67,12 @@ question = gr.inputs.Textbox(label="Question")
67
  answer = gr.outputs.Textbox(label="Predicted answer")
68
  examples = [["apple.jpg", "Qu'est-ce que c'est dans ma main?"], ["cats.jpg", "What are the cats doing?"]]
69
 
70
- interface = gr.Interface(fn=vqa_main,
71
  inputs=[image, question],
72
  outputs="text",
73
  examples=examples,
74
  title=title,
75
  description=description,
76
- article=article,
77
- enable_queue=True)
78
- interface.launch(debug=True, show_error = True)
 
67
  answer = gr.outputs.Textbox(label="Predicted answer")
68
  examples = [["apple.jpg", "Qu'est-ce que c'est dans ma main?"], ["cats.jpg", "What are the cats doing?"]]
69
 
70
+ demo = gr.Interface(fn=vqa_main,
71
  inputs=[image, question],
72
  outputs="text",
73
  examples=examples,
74
  title=title,
75
  description=description,
76
+ article=article)
77
+ demo.queue(concurrency_count=2)
78
+ demo.launch(debug=True, show_error = True)