Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,10 +40,10 @@ def classify_text(text):
|
|
40 |
try:
|
41 |
iface = gr.Interface(
|
42 |
fn=classify_text,
|
43 |
-
inputs=gr.
|
44 |
outputs=[
|
45 |
-
gr.
|
46 |
-
gr.
|
47 |
],
|
48 |
title="DeepSeek-V3 Text Classification",
|
49 |
description="Classify text using the DeepSeek-V3 model."
|
|
|
40 |
try:
|
41 |
iface = gr.Interface(
|
42 |
fn=classify_text,
|
43 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter text here..."), # Updated here
|
44 |
outputs=[
|
45 |
+
gr.Label(label="Predicted Class"), # Updated here
|
46 |
+
gr.Label(label="Probabilities") # Updated here
|
47 |
],
|
48 |
title="DeepSeek-V3 Text Classification",
|
49 |
description="Classify text using the DeepSeek-V3 model."
|