Spaces:
Sleeping
Sleeping
fix
Browse files- app.py +0 -1
- requirements.txt +1 -1
app.py
CHANGED
@@ -8,7 +8,6 @@ def hello(profile: gr.OAuthProfile | None) -> str:
|
|
8 |
return f"Hello {profile.name}"
|
9 |
|
10 |
def list_organizations(oauth_token: gr.OAuthToken | None) -> str:
|
11 |
-
oauth_token.token = "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"
|
12 |
if oauth_token is None:
|
13 |
return "Please log in to list organizations."
|
14 |
org_names = [org["name"] for org in whoami(token=oauth_token.token)["orgs"]]
|
|
|
8 |
return f"Hello {profile.name}"
|
9 |
|
10 |
def list_organizations(oauth_token: gr.OAuthToken | None) -> str:
|
|
|
11 |
if oauth_token is None:
|
12 |
return "Please log in to list organizations."
|
13 |
org_names = [org["name"] for org in whoami(token=oauth_token.token)["orgs"]]
|
requirements.txt
CHANGED
@@ -1 +1 @@
|
|
1 |
-
gradio-4.7.1-py3-none-any.whl
|
|
|
1 |
+
https://huggingface.co/spaces/Wauplin/gradio-oauth-demo/resolve/main/gradio-4.7.1-py3-none-any.whl
|