lunadebruyne commited on
Commit
f456834
·
1 Parent(s): 5c3cee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -406,8 +406,7 @@ with gr.Blocks() as demo:
406
 
407
  with gr.Tab("Dataset"):
408
  gr.Markdown("""
409
- _As we are currently updating this demo, submitting your own data is unavailable for the moment._
410
-
411
  _Try out the showcase mode._
412
  """)
413
  with gr.Row():
@@ -432,9 +431,9 @@ with gr.Blocks() as demo:
432
  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.
433
 
434
  #### Options
435
- **Emotion frequencies** outputs a bar plot with the prediction frequencies of each emotion category (anger, fear, joy, love, sadness or neutral).
436
- **Emotion distribution over time** outputs a line plot that visualises the frequency of predicted emotions over time for each emotion category.
437
- **Peaks** outputs a step graph that only shows the significant fluctuations (upwards and downwards) in emotion frequencies over time.
438
  **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.
439
  """)
440
  with gr.Row():
 
406
 
407
  with gr.Tab("Dataset"):
408
  gr.Markdown("""
409
+ _As we are currently updating this demo, submitting your own data is unavailable for the moment._\
 
410
  _Try out the showcase mode._
411
  """)
412
  with gr.Row():
 
431
  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.
432
 
433
  #### Options
434
+ **Emotion frequencies** outputs a bar plot with the prediction frequencies of each emotion category (anger, fear, joy, love, sadness or neutral).\
435
+ **Emotion distribution over time** outputs a line plot that visualises the frequency of predicted emotions over time for each emotion category.\
436
+ **Peaks** outputs a step graph that only shows the significant fluctuations (upwards and downwards) in emotion frequencies over time.\
437
  **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.
438
  """)
439
  with gr.Row():