Spaces:
Sleeping
Sleeping
Updated app.py.
Browse files
app.py
CHANGED
@@ -12,10 +12,10 @@ def predict(text):
|
|
12 |
|
13 |
# Define interface
|
14 |
iface = gr.Interface(fn=predict,
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
examples=['The indictments were announced Tuesday by the Justice Department in Cairo.', "In 2019, the men's singles winner was Novak Djokovic who defeated Roger Federer in a tournament taking place in the United Kingdom.", 'In a study published by the American Heart Association on January 18, researchers at the Johns Hopkins School of Medicine found that meal timing did not impact weight.'],
|
20 |
allow_flagging='never'
|
21 |
)
|
|
|
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"),
|
18 |
+
outputs=gr.Textbox(label="Predicted Label", lines=2, placeholder='Predicted label will appear here...'),
|
19 |
examples=['The indictments were announced Tuesday by the Justice Department in Cairo.', "In 2019, the men's singles winner was Novak Djokovic who defeated Roger Federer in a tournament taking place in the United Kingdom.", 'In a study published by the American Heart Association on January 18, researchers at the Johns Hopkins School of Medicine found that meal timing did not impact weight.'],
|
20 |
allow_flagging='never'
|
21 |
)
|