Cachoups commited on
Commit
8921c06
·
verified ·
1 Parent(s): 956682c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -659,10 +659,10 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
659
  start_date = df['Date'].min()
660
  end_date = df['Date'].max()
661
  with gr.Row():
662
- start = Calendar(value ="2008-01-01", type="string", label="Start")
663
- end = Calendar(value="2025-01-01",type="string", label="End")
664
- apply_btn = gr.Button("Apply", scale=0)
665
- reset_btn = gr.Button("Reset", scale=0)
666
  # data_table = gr.DataFrame(value=df[['Date', 'Positive_ratio', 'Negative_ratio', 'Total_paragraphs']], label="Sentiment Data", height=500)
667
  # Pivot the DataFrame
668
  #melted_df = df.melt(id_vars='Date', value_vars=['Positive_ratio', 'Negative_ratio'],
 
659
  start_date = df['Date'].min()
660
  end_date = df['Date'].max()
661
  with gr.Row():
662
+ #start = Calendar(value ="2008-01-01", type="string", label="Start")
663
+ #end = Calendar(value="2025-01-01",type="string", label="End")
664
+ #apply_btn = gr.Button("Apply", scale=0)
665
+ #reset_btn = gr.Button("Reset", scale=0)
666
  # data_table = gr.DataFrame(value=df[['Date', 'Positive_ratio', 'Negative_ratio', 'Total_paragraphs']], label="Sentiment Data", height=500)
667
  # Pivot the DataFrame
668
  #melted_df = df.melt(id_vars='Date', value_vars=['Positive_ratio', 'Negative_ratio'],