GuglielmoTor commited on
Commit
25ab3ad
·
verified ·
1 Parent(s): 8081391

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -63,9 +63,10 @@ def guarded_fetch_analytics():
63
  )
64
  return count_md, plot
65
 
66
- def run_mentions_and_load(comm_token, comm_client_id):
67
  try:
68
- html_path = generate_mentions_dashboard(comm_client_id, comm_token)
 
69
  with open(html_path, "r", encoding="utf-8") as f:
70
  return f.read()
71
  except Exception as e:
 
63
  )
64
  return count_md, plot
65
 
66
+ def run_mentions_and_load(comm_token_json, comm_client_id):
67
  try:
68
+ comm_token_dict = json.loads(comm_token_json) # Fix here
69
+ html_path = generate_mentions_dashboard(comm_client_id, comm_token_dict)
70
  with open(html_path, "r", encoding="utf-8") as f:
71
  return f.read()
72
  except Exception as e: