Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -656,8 +656,8 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
|
|
656 |
df['Positive_ratio'] = df['Positive'] / df['Total_paragraphs']*100
|
657 |
df['Negative_ratio'] = df['Negative'] / df['Total_paragraphs']*100
|
658 |
df['Date'] = pd.to_datetime(df['Date'])
|
659 |
-
start_date = df['Date'].min()
|
660 |
-
end_date = df['Date'].max()
|
661 |
with gr.Row():
|
662 |
start = gr.DateTime(value =start_date, type="timestamp", label="Start")
|
663 |
end = gr.DateTime(value=end_date,type="timestamp", label="End")
|
|
|
656 |
df['Positive_ratio'] = df['Positive'] / df['Total_paragraphs']*100
|
657 |
df['Negative_ratio'] = df['Negative'] / df['Total_paragraphs']*100
|
658 |
df['Date'] = pd.to_datetime(df['Date'])
|
659 |
+
start_date = df['Date'].min().value
|
660 |
+
end_date = df['Date'].max().value
|
661 |
with gr.Row():
|
662 |
start = gr.DateTime(value =start_date, type="timestamp", label="Start")
|
663 |
end = gr.DateTime(value=end_date,type="timestamp", label="End")
|