cbensimon HF staff commited on
Commit
ea9509a
·
verified ·
1 Parent(s): e05da46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,9 +11,9 @@ def inner():
11
  return "ok"
12
 
13
  def greet(request: gr.Request, n):
14
- assert inner() == "ok"
15
  token = _get_token(request)
16
  print(token)
 
17
  payload = token.split('.')[1]
18
  payload = f"{payload}{'=' * ((4 - len(payload) % 4) % 4)}"
19
  return json.loads(base64.urlsafe_b64decode(payload).decode())
 
11
  return "ok"
12
 
13
  def greet(request: gr.Request, n):
 
14
  token = _get_token(request)
15
  print(token)
16
+ assert inner() == "ok"
17
  payload = token.split('.')[1]
18
  payload = f"{payload}{'=' * ((4 - len(payload) % 4) % 4)}"
19
  return json.loads(base64.urlsafe_b64decode(payload).decode())