Spaces:
Running
Running
Commit
·
9adcfad
1
Parent(s):
8bb7a63
Update app.py
Browse files
app.py
CHANGED
@@ -409,7 +409,7 @@ with gr.Blocks() as demo:
|
|
409 |
_Try out the showcase mode._
|
410 |
""")
|
411 |
with gr.Row():
|
412 |
-
with gr.Column():
|
413 |
demo_btn = gr.Button("Showcase with example data", variant="primary")
|
414 |
gr.Markdown("""
|
415 |
#### Run in showcase mode or use your own data
|
@@ -417,14 +417,14 @@ with gr.Blocks() as demo:
|
|
417 |
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.
|
418 |
""")
|
419 |
with gr.Row():
|
420 |
-
with gr.Column():
|
421 |
input_file = gr.File(
|
422 |
label="Upload a dataset")
|
423 |
input_checks = gr.CheckboxGroup(
|
424 |
["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
|
425 |
label = "Select options")
|
426 |
send_btn = gr.Button("Submit data")
|
427 |
-
with gr.Column():
|
428 |
gr.Markdown("""
|
429 |
#### Data format
|
430 |
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.
|
|
|
409 |
_Try out the showcase mode._
|
410 |
""")
|
411 |
with gr.Row():
|
412 |
+
with gr.Column(min_width=100):
|
413 |
demo_btn = gr.Button("Showcase with example data", variant="primary")
|
414 |
gr.Markdown("""
|
415 |
#### Run in showcase mode or use your own data
|
|
|
417 |
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.
|
418 |
""")
|
419 |
with gr.Row():
|
420 |
+
with gr.Column(min_width=100):
|
421 |
input_file = gr.File(
|
422 |
label="Upload a dataset")
|
423 |
input_checks = gr.CheckboxGroup(
|
424 |
["emotion frequencies", "emotion distribution over time", "peaks", "topics"],
|
425 |
label = "Select options")
|
426 |
send_btn = gr.Button("Submit data")
|
427 |
+
with gr.Column(min_width=100):
|
428 |
gr.Markdown("""
|
429 |
#### Data format
|
430 |
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.
|