shane666 commited on
Commit
25c68df
·
1 Parent(s): 332327d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -71,7 +71,12 @@ def test(image):
71
 
72
  demo = gr.Interface(
73
  fn=Tree_Detection,
74
- inputs=['text'(lable='123'),'text','text','text'],
 
 
 
 
 
75
  outputs=['text', 'image']
76
  )
77
  demo.launch()
 
71
 
72
  demo = gr.Interface(
73
  fn=Tree_Detection,
74
+ inputs={
75
+ 'input1': gr.inputs.Textbox(label="说明1:"),
76
+ 'input2': gr.inputs.Textbox(label="说明2:"),
77
+ 'input3': gr.inputs.Textbox(label="说明3:"),
78
+ 'input4': gr.inputs.Textbox(label="说明4:"),
79
+ },
80
  outputs=['text', 'image']
81
  )
82
  demo.launch()