Spaces:
Running
Running
added classify
Browse files
app.py
CHANGED
@@ -19,7 +19,8 @@ def classify(text):
|
|
19 |
demo = gr.Interface(
|
20 |
fn=classify,
|
21 |
inputs=gr.Textbox(label="Enter text"),
|
22 |
-
outputs=gr.Textbox(label="Prediction")
|
|
|
23 |
)
|
24 |
|
25 |
# ✅ Enable API and queue
|
|
|
19 |
demo = gr.Interface(
|
20 |
fn=classify,
|
21 |
inputs=gr.Textbox(label="Enter text"),
|
22 |
+
outputs=gr.Textbox(label="Prediction"),
|
23 |
+
api_name="/classify"
|
24 |
)
|
25 |
|
26 |
# ✅ Enable API and queue
|