Cachoups commited on
Commit
6313df2
·
verified ·
1 Parent(s): 8c410bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -11,6 +11,7 @@ import matplotlib.pyplot as plt
11
  import matplotlib.patches as patches
12
  import io
13
  import shutil
 
14
  # Initialize spaCy model
15
  nlp = spacy.load('en_core_web_sm')
16
  nlp.add_pipe('sentencizer')
@@ -658,8 +659,8 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
658
  start_date = df['Date'].min()
659
  end_date = df['Date'].max()
660
  with gr.Row():
661
- start = Calendar(value =start_date, type="datetime", label="Start")
662
- end = Calendar(value=end_date,type="datetime", label="End")
663
  apply_btn = gr.Button("Apply", scale=0)
664
  reset_btn = gr.Button("Reset", scale=0)
665
  # data_table = gr.DataFrame(value=df[['Date', 'Positive_ratio', 'Negative_ratio', 'Total_paragraphs']], label="Sentiment Data", height=500)
 
11
  import matplotlib.patches as patches
12
  import io
13
  import shutil
14
+
15
  # Initialize spaCy model
16
  nlp = spacy.load('en_core_web_sm')
17
  nlp.add_pipe('sentencizer')
 
659
  start_date = df['Date'].min()
660
  end_date = df['Date'].max()
661
  with gr.Row():
662
+ start = Calendar(value =start_date, type="timestamp", label="Start")
663
+ end = Calendar(value=end_date,type="timestamp", 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)