Update app.py
Browse files
app.py
CHANGED
@@ -47,10 +47,8 @@ article = "Sentiment Analysis, also known as opinion mining, is a branch of Natu
|
|
47 |
iface = gr.Interface(
|
48 |
fn=predict_sentiment,
|
49 |
inputs="text",
|
50 |
-
outputs="
|
51 |
-
|
52 |
-
theme="huggingface",
|
53 |
-
interpretation="default",
|
54 |
title=title,
|
55 |
description=description,
|
56 |
article=article)
|
|
|
47 |
iface = gr.Interface(
|
48 |
fn=predict_sentiment,
|
49 |
inputs="text",
|
50 |
+
outputs=[gr.Label(num_top_classes=7, label="Predictions"), # what are the outputs?
|
51 |
+
gr.Number(label="Prediction time (s)")],
|
|
|
|
|
52 |
title=title,
|
53 |
description=description,
|
54 |
article=article)
|