GuglielmoTor commited on
Commit
506f1ee
·
verified ·
1 Parent(s): f3b41b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -1,4 +1,6 @@
1
  import gradio as gr
 
 
2
 
3
  # shared state
4
  token_received = {"status": False, "token": "", "client_id": ""}
@@ -26,6 +28,8 @@ def reset_status():
26
  token_received["client_id"] = ""
27
  return "❌ Code not received", "", ""
28
 
 
 
29
  with gr.Blocks() as demo:
30
  hidden_token = gr.Textbox(visible=False, elem_id="hidden_token")
31
  hidden_client_id = gr.Textbox(visible=False, elem_id="hidden_client_id")
 
1
  import gradio as gr
2
+ from Data_Fetching_&_Rendering import fetch_org_urn
3
+
4
 
5
  # shared state
6
  token_received = {"status": False, "token": "", "client_id": ""}
 
28
  token_received["client_id"] = ""
29
  return "❌ Code not received", "", ""
30
 
31
+ urn, name = fetch_org_urn(token_received["client_id"], token_received["token"])
32
+
33
  with gr.Blocks() as demo:
34
  hidden_token = gr.Textbox(visible=False, elem_id="hidden_token")
35
  hidden_client_id = gr.Textbox(visible=False, elem_id="hidden_client_id")