sercetexam9 commited on
Commit
23ea436
·
verified ·
1 Parent(s): bdb12ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -103,7 +103,8 @@ def predict(text):
103
 
104
  demo = gr.Interface(
105
  fn=predict,
106
- inputs=["text"],
107
- outputs=["text"],
108
  )
109
- demo.launch(share=True)
 
 
103
 
104
  demo = gr.Interface(
105
  fn=predict,
106
+ inputs=[gr.Textbox(label="Text", lines=3],
107
+ outputs=[gr.Textbox(label="Predict", lines=1)],
108
  )
109
+ if __name__ == "__main__":
110
+ demo.launch()