lunadebruyne commited on
Commit
b38925d
·
1 Parent(s): 1a53131

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -56,7 +56,7 @@ iface1 = gr.Interface(
56
  fn=what_happened1,
57
  description = description1,
58
  inputs = gr.Textbox(
59
- label= "Enter a sentence",
60
  lines=1,
61
  value="Your name"),
62
  outputs="text")
@@ -71,7 +71,14 @@ iface2 = gr.Interface(
71
  ["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
72
  label = "Select options")
73
  ],
74
- outputs=["text", "text", "text", "text", "text"])
 
 
 
 
 
 
 
75
 
76
  iface = gr.TabbedInterface([iface1, iface2], ["Sentence", "Dataset"])
77
 
 
56
  fn=what_happened1,
57
  description = description1,
58
  inputs = gr.Textbox(
59
+ label="Enter a sentence",
60
  lines=1,
61
  value="Your name"),
62
  outputs="text")
 
71
  ["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
72
  label = "Select options")
73
  ],
74
+ #outputs=["text", "text", "text", "text", "text"])
75
+ outputs = [
76
+ gr.Textbox(label="Output file."),
77
+ gr.Textbox(label="Emotion frequencies"),
78
+ gr.Textbox(label="Emotion distribution over time"),
79
+ gr.Textbox(label="Peaks"),
80
+ gr.Textbox(label="Topics"),
81
+ ]
82
 
83
  iface = gr.TabbedInterface([iface1, iface2], ["Sentence", "Dataset"])
84