SeyedAli commited on
Commit
a5cd4ab
1 Parent(s): 83c5511

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,5 +48,5 @@ def VQA(image,text):
48
  idx = logits.argmax(-1).item()
49
  return run_en_fa_transaltion_model(VQA_model.config.id2label[idx])[0]
50
 
51
- iface = gr.Interface(fn=VQA, inputs=[image_input,text_input], outputs="text")
52
  iface.launch(share=False)
 
48
  idx = logits.argmax(-1).item()
49
  return run_en_fa_transaltion_model(VQA_model.config.id2label[idx])[0]
50
 
51
+ iface = gr.Interface(fn=VQA, inputs=[image_input,text_input], outputs=text_output)
52
  iface.launch(share=False)