Spaces:
Sleeping
Sleeping
Commit
·
a9e76be
1
Parent(s):
35e86ac
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def classify_text(text):
|
|
17 |
# Create a Gradio interface
|
18 |
iface = gr.Interface(
|
19 |
fn=classify_text,
|
20 |
-
inputs=
|
21 |
outputs=gr.outputs.Label(num_top_classes=None), # Show all labels
|
22 |
)
|
23 |
|
|
|
17 |
# Create a Gradio interface
|
18 |
iface = gr.Interface(
|
19 |
fn=classify_text,
|
20 |
+
inputs=gr.components.Textbox(label="Enter text"),
|
21 |
outputs=gr.outputs.Label(num_top_classes=None), # Show all labels
|
22 |
)
|
23 |
|