Vera-ZWY commited on
Commit
fb10e94
1 Parent(s): c04fc5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,6 +7,7 @@ import pandas as pd
7
  from io import StringIO, BytesIO
8
  import base64
9
  import json
 
10
  # import plotly.io as pio
11
  # from linePlot import plot_stacked_time_series, plot_emotion_topic_grid
12
 
@@ -60,7 +61,7 @@ def topic_plot_gener(message: str, year: str):
60
  # plt.imshow(img)
61
  # plt.axis('off')
62
  # plt.show()
63
- plot_json = json.loads(plot_data['plot'])
64
 
65
  # Create a figure using the decoded data
66
  fig = go.Figure(data=plot_json["data"])
 
7
  from io import StringIO, BytesIO
8
  import base64
9
  import json
10
+ import plotly.graph_objects as go
11
  # import plotly.io as pio
12
  # from linePlot import plot_stacked_time_series, plot_emotion_topic_grid
13
 
 
61
  # plt.imshow(img)
62
  # plt.axis('off')
63
  # plt.show()
64
+ plot_json = json.loads(fig['plot'])
65
 
66
  # Create a figure using the decoded data
67
  fig = go.Figure(data=plot_json["data"])