2006elad commited on
Commit
258e22b
·
1 Parent(s): ea78aa8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,7 +9,7 @@ def predict(text, name):
9
 
10
  demo = gr.Interface(
11
  fn=predict,
12
- inputs=('text', 'text'),
13
- outputs='text',
14
  )
15
- demo.launch()
 
9
 
10
  demo = gr.Interface(
11
  fn=predict,
12
+ inputs=[gr.inputs.Textbox(label="Text"), gr.inputs.Textbox(label="Name")],
13
+ outputs=gr.outputs.Textbox(),
14
  )
15
+ demo.launch()