Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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())
|