Spaces:
Running
Running
Updated app.py.
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def predict(text):
|
|
13 |
# Define interface
|
14 |
iface = gr.Interface(fn=predict,
|
15 |
inputs=gr.inputs.Textbox(lines=10, label="Input Text"),
|
16 |
-
outputs=
|
17 |
title="Text Classification",
|
18 |
description="Classify text as other[0], healthcare[1], or technology[2]",
|
19 |
examples=[
|
|
|
13 |
# Define interface
|
14 |
iface = gr.Interface(fn=predict,
|
15 |
inputs=gr.inputs.Textbox(lines=10, label="Input Text"),
|
16 |
+
outputs=gr.outputs.Label(num_top_classes=3),
|
17 |
title="Text Classification",
|
18 |
description="Classify text as other[0], healthcare[1], or technology[2]",
|
19 |
examples=[
|