Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,6 +52,8 @@ def greeting(profile: gr.OAuthProfile | None) -> str:
|
|
| 52 |
def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> tuple[str, gr.update, gr.update]:
|
| 53 |
gr.Textbox(oauth_token)
|
| 54 |
if oauth_token is None:
|
|
|
|
|
|
|
| 55 |
return "HuggingFaceにログインしてください。", gr.update(visible=False), gr.update(visible=False) #, gr.update(visible=False)
|
| 56 |
#models = [
|
| 57 |
#f"{model.id} ({'private' if model.private else 'public'})"
|
|
|
|
| 52 |
def list_private_models(profile: gr.OAuthProfile | None, oauth_token: gr.OAuthToken | None) -> tuple[str, gr.update, gr.update]:
|
| 53 |
gr.Textbox(oauth_token)
|
| 54 |
if oauth_token is None:
|
| 55 |
+
state.value["loginuser"] = ""
|
| 56 |
+
state.value["picture"] = ""
|
| 57 |
return "HuggingFaceにログインしてください。", gr.update(visible=False), gr.update(visible=False) #, gr.update(visible=False)
|
| 58 |
#models = [
|
| 59 |
#f"{model.id} ({'private' if model.private else 'public'})"
|