Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def get_prediction(text):
|
|
| 18 |
iface = gr.Interface(
|
| 19 |
fn=get_prediction,
|
| 20 |
inputs=gr.Textbox(lines=4, placeholder="Type your text..."),
|
| 21 |
-
outputs=[gr.
|
| 22 |
title="BERT Sequence Classification Demo",
|
| 23 |
description="This demo uses a BERT model hosted on Hugging Face to classify text sequences."
|
| 24 |
)
|
|
|
|
| 18 |
iface = gr.Interface(
|
| 19 |
fn=get_prediction,
|
| 20 |
inputs=gr.Textbox(lines=4, placeholder="Type your text..."),
|
| 21 |
+
outputs=[gr.Label(label="Prediction"), gr.Dataframe(label="Scores")],
|
| 22 |
title="BERT Sequence Classification Demo",
|
| 23 |
description="This demo uses a BERT model hosted on Hugging Face to classify text sequences."
|
| 24 |
)
|