Cachoups commited on
Commit
956682c
·
verified ·
1 Parent(s): 540c0a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -659,8 +659,8 @@ 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 = gr.DateTime(value ="2008-0-101", type="string", label="Start")
663
- end = gr.DateTime(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)
 
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)