GuglielmoTor commited on
Commit
a0b418d
·
verified ·
1 Parent(s): d45a226

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,12 +1,13 @@
1
  import gradio as gr
2
 
3
  # shared state
4
- token_received = {"status": False, "token": ""}
5
 
6
  # 1) this will be called by POST
7
- def receive_token(accessToken: str):
8
  token_received["status"] = True
9
  token_received["token"] = accessToken
 
10
  return {"status": "ok"}
11
 
12
  # 2) this just drives your UI
 
1
  import gradio as gr
2
 
3
  # shared state
4
+ token_received = {"status": False, "token": "", "client_id": ""}
5
 
6
  # 1) this will be called by POST
7
+ def receive_token(accessToken: str, client_id: str):
8
  token_received["status"] = True
9
  token_received["token"] = accessToken
10
+ token_received["client_id"] = client_id
11
  return {"status": "ok"}
12
 
13
  # 2) this just drives your UI