Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ from mentions_dashboard import generate_mentions_dashboard
|
|
12 |
|
13 |
# Import the function from your utils file
|
14 |
from gradio_utils import get_url_user_token # Assuming gradio_utils.py is in the same directory
|
|
|
15 |
|
16 |
# Shared state for token received via POST or Bubble
|
17 |
token_received = {"status": False, "token": None, "client_id": None}
|
@@ -105,7 +106,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
|
|
105 |
visible=False
|
106 |
)
|
107 |
|
108 |
-
|
109 |
|
110 |
status_box = gr.Textbox(label="Overall Token Status", interactive=False)
|
111 |
token_display = gr.Textbox(label="Access Token (Active)", interactive=False)
|
@@ -121,7 +122,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="sky"),
|
|
121 |
url_user_token_display.change(
|
122 |
fn=fetch_linkedin_token_from_bubble,
|
123 |
inputs=[url_user_token_display],
|
124 |
-
outputs=[
|
125 |
)
|
126 |
|
127 |
hidden_btn.click(
|
|
|
12 |
|
13 |
# Import the function from your utils file
|
14 |
from gradio_utils import get_url_user_token # Assuming gradio_utils.py is in the same directory
|
15 |
+
from Bubble_API_Calls import fetch_linkedin_token_from_bubble
|
16 |
|
17 |
# Shared state for token received via POST or Bubble
|
18 |
token_received = {"status": False, "token": None, "client_id": None}
|
|
|
106 |
visible=False
|
107 |
)
|
108 |
|
109 |
+
parsed_token_dict = gr.Textbox(label="Bubble API Call Status", interactive=False, placeholder="Waiting for URL token...")
|
110 |
|
111 |
status_box = gr.Textbox(label="Overall Token Status", interactive=False)
|
112 |
token_display = gr.Textbox(label="Access Token (Active)", interactive=False)
|
|
|
122 |
url_user_token_display.change(
|
123 |
fn=fetch_linkedin_token_from_bubble,
|
124 |
inputs=[url_user_token_display],
|
125 |
+
outputs=[parsed_token_dict]
|
126 |
)
|
127 |
|
128 |
hidden_btn.click(
|