Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,9 +63,10 @@ def guarded_fetch_analytics():
|
|
| 63 |
)
|
| 64 |
return count_md, plot
|
| 65 |
|
| 66 |
-
def run_mentions_and_load(
|
| 67 |
try:
|
| 68 |
-
|
|
|
|
| 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:
|