olofbengtsson commited on
Commit
cce1e1f
1 Parent(s): e6bef31

Added instruction field to the application

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -444,6 +444,19 @@ if __name__ == "__main__":
444
  demo = gr.Blocks(title='Politweet')
445
  with demo:
446
  with gr.Column():
 
 
 
 
 
 
 
 
 
 
 
 
 
447
  with gr.Row():
448
  with gr.Column():
449
  with gr.Row():
 
444
  demo = gr.Blocks(title='Politweet')
445
  with demo:
446
  with gr.Column():
447
+ instructions = gr.Markdown(
448
+ 'How to use Politweet: \n\nFirst select the time interval you want to analyze, '
449
+ 'then the party leaders you want to focus on. After this you pick which '
450
+ 'statistics you want to see and click "Apply" to apply your choices. When '
451
+ 'you see empty boxes appearing, you can click "Run" to run the program.\n\nYou should now be able to '
452
+ 'see the visualisations of the collected statistics. Under the visualisations there are a few fields '
453
+ 'and buttons. If you want to see the full presentation of a specific statistic you can press one of '
454
+ 'the radio buttons, click "Show stats" and then once again press "Apply" and "Run" at the top. This '
455
+ 'presents a dataframe that accounts for the whole classification process. For "Topic" and "Target" '
456
+ 'there is a column called cos_sim_... which says how similar the algorithm found the classification '
457
+ 'and "synonym_..." to be. The field "Number" tells how many tweets the party leader made during the '
458
+ 'selected time period. If you do not see any tweets for a leader you might have to increase the time '
459
+ 'span.')
460
  with gr.Row():
461
  with gr.Column():
462
  with gr.Row():