Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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)
|