abidlabs HF staff commited on
Commit
8c9c6ab
1 Parent(s): e3f45be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -11,7 +11,6 @@ def predict(img, text):
11
  img,
12
  text
13
  )
14
- print(prediction)
15
- return prediction['answer']
16
 
17
  gr.Interface(predict, [gr.Image(type="filepath"), gr.Textbox(label="Question")], gr.Textbox()).launch()
 
11
  img,
12
  text
13
  )
14
+ return prediction[0]['answer']
 
15
 
16
  gr.Interface(predict, [gr.Image(type="filepath"), gr.Textbox(label="Question")], gr.Textbox()).launch()