lunadebruyne commited on
Commit
f7b5777
·
1 Parent(s): c4677ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -411,19 +411,19 @@ with gr.Blocks() as demo:
411
  with gr.Row():
412
  demo_btn = gr.Button("Showcase with example data", variant="primary")
413
  gr.Markdown("""
414
- # Run in showcase mode or use your own data
415
 
416
  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.
417
  """)
418
  with gr.Row():
419
- with gr.Column(scale=0.75):
420
  input_file = gr.File(
421
  label="Upload a dataset")
422
  input_checks = gr.CheckboxGroup(
423
  ["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
424
  label = "Select options")
425
  send_btn = gr.Button("Submit data")
426
- with gr.Column(scale=1):
427
  gr.Markdown("""
428
  #### Data format
429
  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.
 
411
  with gr.Row():
412
  demo_btn = gr.Button("Showcase with example data", variant="primary")
413
  gr.Markdown("""
414
+ ### Run in showcase mode or use your own data
415
 
416
  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.
417
  """)
418
  with gr.Row():
419
+ with gr.Column():
420
  input_file = gr.File(
421
  label="Upload a dataset")
422
  input_checks = gr.CheckboxGroup(
423
  ["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
424
  label = "Select options")
425
  send_btn = gr.Button("Submit data")
426
+ with gr.Column():
427
  gr.Markdown("""
428
  #### Data format
429
  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.