Keetawan commited on
Commit
f85ddaf
·
1 Parent(s): 6fd07ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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="text",
51
- live=True,
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)