Vijish commited on
Commit
e1ccc30
1 Parent(s): cd0f6fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -87,8 +87,10 @@ def predict(text,img):
87
  #ipyplot.plot_images(imgs,img_width=350)
88
  return imgs
89
 
90
- #text = gr.inputs.Textbox(lines=5, label="Context")
91
  #img = gr.inputs.Image()
92
 
 
93
 
94
- gr_interface = gr.Interface(fn=predict,["image", gr.inputs.Textbox(lines=1, label="Context")], outputs="image", title='Search inside image').launch();
 
 
87
  #ipyplot.plot_images(imgs,img_width=350)
88
  return imgs
89
 
90
+ text = gr.inputs.Textbox(lines=5, label="Context")
91
  #img = gr.inputs.Image()
92
 
93
+ img = "image"
94
 
95
+
96
+ gr_interface = gr.Interface(fn=predict,[img, text], outputs="image", title='Search inside image').launch();