Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -658,12 +658,11 @@ with gr.Blocks(theme='gradio/soft',js=js_func) as demo:
|
|
658 |
# Pivot the DataFrame
|
659 |
melted_df = df.melt(id_vars='Date', value_vars=['Positive_ratio', 'Negative_ratio', 'Neutral_ratio'],
|
660 |
var_name='Ratio_Type', value_name='Rate')
|
661 |
-
print(melted_df)
|
662 |
# Line plot for the ratios
|
663 |
line_plot = gr.LinePlot(
|
664 |
melted_df,
|
665 |
x='Date',
|
666 |
-
y='
|
667 |
title="Sentiment Ratios Over Time",
|
668 |
y_lim=[0, 1], # Limit y-axis to 0-1 since it's a ratio
|
669 |
color = 'Ratio_Type'
|
|
|
658 |
# Pivot the DataFrame
|
659 |
melted_df = df.melt(id_vars='Date', value_vars=['Positive_ratio', 'Negative_ratio', 'Neutral_ratio'],
|
660 |
var_name='Ratio_Type', value_name='Rate')
|
|
|
661 |
# Line plot for the ratios
|
662 |
line_plot = gr.LinePlot(
|
663 |
melted_df,
|
664 |
x='Date',
|
665 |
+
y='Rate',
|
666 |
title="Sentiment Ratios Over Time",
|
667 |
y_lim=[0, 1], # Limit y-axis to 0-1 since it's a ratio
|
668 |
color = 'Ratio_Type'
|