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