lunadebruyne commited on
Commit
6e432b1
·
1 Parent(s): 7663872

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -16
app.py CHANGED
@@ -81,25 +81,23 @@ iface_sentence = gr.Interface(
81
  lines=1),
82
  outputs="text")
83
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  iface_dataset = gr.Interface(
85
  fn = inference_dataset,
86
  description = description_dataset,
87
- inputs=[
88
- gr.File(
89
- label="Upload a dataset"),
90
- gr.CheckboxGroup(
91
- ["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
92
- label = "Select options")
93
- ],
94
- #outputs=["text", "text", "text", "text", "text"])
95
- outputs = [
96
- #gr.Textbox(label="Output file"),
97
- "file",
98
- gr.Plot(label="Emotion frequencies"),
99
- gr.Textbox(label="Emotion distribution over time"),
100
- gr.Textbox(label="Peaks"),
101
- gr.Textbox(label="Topics")
102
- ])
103
 
104
  iface = gr.TabbedInterface([iface_sentence, iface_dataset], ["Sentence", "Dataset"])
105
 
 
81
  lines=1),
82
  outputs="text")
83
 
84
+ inputs = [gr.File(
85
+ label="Upload a dataset"),
86
+ gr.CheckboxGroup(
87
+ ["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
88
+ label = "Select options")]
89
+
90
+ outputs = [gr.File(),
91
+ gr.Plot(label="Emotion frequencies"),
92
+ gr.Textbox(label="Emotion distribution over time"),
93
+ gr.Textbox(label="Peaks"),
94
+ gr.Textbox(label="Topics")]
95
+
96
  iface_dataset = gr.Interface(
97
  fn = inference_dataset,
98
  description = description_dataset,
99
+ inputs=inputs,
100
+ outputs = outputs)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
 
102
  iface = gr.TabbedInterface([iface_sentence, iface_dataset], ["Sentence", "Dataset"])
103