Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
import json
|
3 |
-
from Data_Fetching_and_Rendering import
|
4 |
|
5 |
# shared state
|
6 |
token_received = {"status": False, "token": "", "client_id": ""}
|
@@ -40,7 +40,7 @@ def show_client_id():
|
|
40 |
def fetch_and_render():
|
41 |
if not token_received["status"]:
|
42 |
return "", ""
|
43 |
-
return
|
44 |
|
45 |
# 4) reset everything
|
46 |
def reset_status():
|
|
|
1 |
import gradio as gr
|
2 |
import json
|
3 |
+
from Data_Fetching_and_Rendering import fetch_posts_and_stats
|
4 |
|
5 |
# shared state
|
6 |
token_received = {"status": False, "token": "", "client_id": ""}
|
|
|
40 |
def fetch_and_render():
|
41 |
if not token_received["status"]:
|
42 |
return "", ""
|
43 |
+
return fetch_posts_and_stats(token_received["client_id"], token_received["token"])
|
44 |
|
45 |
# 4) reset everything
|
46 |
def reset_status():
|