Spaces:
Sleeping
Sleeping
Updated app.py.
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def predict(text):
|
|
11 |
return model.predict([text])[0]
|
12 |
|
13 |
# Define interface
|
14 |
-
|
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
|
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 |
|