Update app.py
Browse files
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=["
|
| 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 |
|