curtpond commited on
Commit
733f064
1 Parent(s): 7862c87

Updated app.py.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ def predict(text):
11
  return model.predict([text])[0]
12
 
13
  # Define interface
14
- iface = gr.Interface(fn=predict,
15
  title="Text Classification Demo",
16
  description="This is a demo of a text classification model using Logistic Regression.",
17
  inputs=gr.Textbox(lines=10, placeholder='Input text here...', label="Input Text"),
@@ -20,7 +20,7 @@ iface = gr.Interface(fn=predict,
20
  allow_flagging='never'
21
  )
22
 
23
- demo = iface.launch(share=True)
24
 
25
 
26
 
 
11
  return model.predict([text])[0]
12
 
13
  # Define interface
14
+ demo = gr.Interface(fn=predict,
15
  title="Text Classification Demo",
16
  description="This is a demo of a text classification model using Logistic Regression.",
17
  inputs=gr.Textbox(lines=10, placeholder='Input text here...', label="Input Text"),
 
20
  allow_flagging='never'
21
  )
22
 
23
+ demo.launch()
24
 
25
 
26