ivelin commited on
Commit
a218a91
1 Parent(s): 7d6913a

fix: cleanup

Browse files

Signed-off-by: ivelin <ivelin.eth@gmail.com>

Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -78,8 +78,12 @@ examples = [
78
  ["example_2.jpg", "enter the text field next to the name"]
79
  ],
80
 
81
- demo = gr.Interface(fn=process_refexp, inputs=[gr.inputs.Image(type='pil'), "textbox"],
82
- outputs=[gr.inputs.Image(type='pil'), "textbox"],
83
- title=title, description=description, article=article, examples=examples,
84
- allow_flagging=False, allow_screenshot=False)
 
 
 
 
85
  demo.launch(cache_examples=True)
 
78
  ["example_2.jpg", "enter the text field next to the name"]
79
  ],
80
 
81
+ demo = gr.Interface(fn=process_refexp,
82
+ inputs=["image", "text"],
83
+ outputs=["image", "json"],
84
+ title=title,
85
+ description=description,
86
+ article=article,
87
+ examples=examples)
88
+
89
  demo.launch(cache_examples=True)