zting commited on
Commit
660cad9
1 Parent(s): e9fcbbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -102,9 +102,9 @@ def segment(image,text):
102
  demo = gr.Interface(
103
  fn=segment,
104
  inputs=[
105
- gr.Image(type="filepath",shape=(200, 200)),
106
- gr.components.Textbox(label="Text"),
107
  ],
108
- outputs=["text"])
109
  demo.launch()
110
 
 
102
  demo = gr.Interface(
103
  fn=segment,
104
  inputs=[
105
+ gr.Image(type="filepath",shape=(200, 200),label="请选择一张图片"),
106
+ gr.components.Textbox(label="Text",label="请输入问题"),
107
  ],
108
+ outputs=[gr.components.Textbox(label="Text",label="回答")])
109
  demo.launch()
110