Rodrigo Uribe
commited on
Commit
·
96e7d44
1
Parent(s):
386812f
no inputs
Browse files
app.py
CHANGED
|
@@ -28,10 +28,10 @@ def classify_text(text):
|
|
| 28 |
# Create the Gradio interface
|
| 29 |
iface = gr.Interface(
|
| 30 |
fn=classify_text,
|
| 31 |
-
inputs=gr.
|
| 32 |
outputs=[
|
| 33 |
-
gr.
|
| 34 |
-
gr.
|
| 35 |
]
|
| 36 |
)
|
| 37 |
|
|
|
|
| 28 |
# Create the Gradio interface
|
| 29 |
iface = gr.Interface(
|
| 30 |
fn=classify_text,
|
| 31 |
+
inputs=gr.Textbox(lines=2, placeholder="Enter Text Here..."),
|
| 32 |
outputs=[
|
| 33 |
+
gr.Label(label="Classification"),
|
| 34 |
+
gr.JSON(label="Probabilities")
|
| 35 |
]
|
| 36 |
)
|
| 37 |
|