Spaces:
Running
Running
Commit
·
62ef56e
1
Parent(s):
4585131
Update app.py
Browse files
app.py
CHANGED
@@ -404,14 +404,6 @@ with gr.Blocks() as demo:
|
|
404 |
_As we are currently updating this demo, submitting your own data is unavailable for the moment._
|
405 |
_Try out the showcase mode._
|
406 |
""")
|
407 |
-
with gr.Row():
|
408 |
-
with gr.Column(min_width=100):
|
409 |
-
demo_btn = gr.Button("Showcase with example data", variant="primary")
|
410 |
-
gr.Markdown("""
|
411 |
-
#### Run in showcase mode or use your own data
|
412 |
-
|
413 |
-
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.
|
414 |
-
""")
|
415 |
with gr.Row():
|
416 |
with gr.Column(min_width=100):
|
417 |
input_file = gr.File(
|
@@ -420,6 +412,7 @@ with gr.Blocks() as demo:
|
|
420 |
["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
|
421 |
label = "Select options")
|
422 |
send_btn = gr.Button("Submit data")
|
|
|
423 |
with gr.Column(min_width=100):
|
424 |
gr.Markdown("""
|
425 |
#### Data format
|
@@ -430,6 +423,9 @@ with gr.Blocks() as demo:
|
|
430 |
**Emotion distribution over time** outputs a line plot that visualises the frequency of predicted emotions over time for each emotion category.
|
431 |
**Peaks** outputs a step graph that only shows the significant fluctuations (upwards and downwards) in emotion frequencies over time.
|
432 |
**Topics** uses [BERTopic](https://maartengr.github.io/BERTopic/index.html) to find topics in the datasets, and outputs a bar plot that shows the emotion distribution per topic.
|
|
|
|
|
|
|
433 |
""")
|
434 |
with gr.Row():
|
435 |
with gr.Column():
|
|
|
404 |
_As we are currently updating this demo, submitting your own data is unavailable for the moment._
|
405 |
_Try out the showcase mode._
|
406 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
with gr.Row():
|
408 |
with gr.Column(min_width=100):
|
409 |
input_file = gr.File(
|
|
|
412 |
["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
|
413 |
label = "Select options")
|
414 |
send_btn = gr.Button("Submit data")
|
415 |
+
demo_btn = gr.Button("Showcase with example data", variant="primary")
|
416 |
with gr.Column(min_width=100):
|
417 |
gr.Markdown("""
|
418 |
#### Data format
|
|
|
423 |
**Emotion distribution over time** outputs a line plot that visualises the frequency of predicted emotions over time for each emotion category.
|
424 |
**Peaks** outputs a step graph that only shows the significant fluctuations (upwards and downwards) in emotion frequencies over time.
|
425 |
**Topics** uses [BERTopic](https://maartengr.github.io/BERTopic/index.html) to find topics in the datasets, and outputs a bar plot that shows the emotion distribution per topic.
|
426 |
+
|
427 |
+
#### Run in showcase mode or use your own data
|
428 |
+
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.
|
429 |
""")
|
430 |
with gr.Row():
|
431 |
with gr.Column():
|