Spaces:
Running
Running
Commit
·
08fd507
1
Parent(s):
749c3f4
Update app.py
Browse files
app.py
CHANGED
@@ -305,7 +305,7 @@ with gr.Blocks() as demo:
|
|
305 |
demo_btn = gr.Button("Showcase with example data", variant="primary")
|
306 |
with gr.Column():
|
307 |
gr.Markdown("""
|
308 |
-
**<
|
309 |
Try out the demo in showcase mode, which uses example data (609,206 tweets about the COVID-19 pandemic) with all the options provided by the demo, or upload your own dataset.
|
310 |
""")
|
311 |
with gr.Row():
|
@@ -318,10 +318,10 @@ with gr.Blocks() as demo:
|
|
318 |
send_btn = gr.Button("Submit data")
|
319 |
with gr.Column():
|
320 |
gr.Markdown("""
|
321 |
-
**<
|
322 |
The data should be in tsv-format with two named columns: the first column (id) should contain the sentence IDs, and the second column (text) should contain the actual texts. Optionally, there is a third column named 'date', which specifies the date associated with the text (e.g., tweet date). This column is necessary when the options 'emotion distribution over time' and 'peaks' are selected. For now, we only accept files with maximum 400 sentences and a limit of 300 tokens per sentence.
|
323 |
|
324 |
-
**<
|
325 |
**Emotion frequencies** outputs a bar plot with the prediction frequencies of each emotion category (anger, fear, joy, love, sadness or neutral).
|
326 |
**Emotion distribution over time** outputs a line plot that visualises the frequency of predicted emotions over time for each emotion category.
|
327 |
**Peaks** outputs a step graph that only shows the significant fluctuations (upwards and downwards) in emotion frequencies over time.
|
|
|
305 |
demo_btn = gr.Button("Showcase with example data", variant="primary")
|
306 |
with gr.Column():
|
307 |
gr.Markdown("""
|
308 |
+
**<font size="4">Run in showcase mode or use your own data</font>**
|
309 |
Try out the demo in showcase mode, which uses example data (609,206 tweets about the COVID-19 pandemic) with all the options provided by the demo, or upload your own dataset.
|
310 |
""")
|
311 |
with gr.Row():
|
|
|
318 |
send_btn = gr.Button("Submit data")
|
319 |
with gr.Column():
|
320 |
gr.Markdown("""
|
321 |
+
**<font size="2">Data format</font>**
|
322 |
The data should be in tsv-format with two named columns: the first column (id) should contain the sentence IDs, and the second column (text) should contain the actual texts. Optionally, there is a third column named 'date', which specifies the date associated with the text (e.g., tweet date). This column is necessary when the options 'emotion distribution over time' and 'peaks' are selected. For now, we only accept files with maximum 400 sentences and a limit of 300 tokens per sentence.
|
323 |
|
324 |
+
**<font size="2">Options</font>**
|
325 |
**Emotion frequencies** outputs a bar plot with the prediction frequencies of each emotion category (anger, fear, joy, love, sadness or neutral).
|
326 |
**Emotion distribution over time** outputs a line plot that visualises the frequency of predicted emotions over time for each emotion category.
|
327 |
**Peaks** outputs a step graph that only shows the significant fluctuations (upwards and downwards) in emotion frequencies over time.
|