fudii0921 commited on
Commit
2e5799f
·
verified ·
1 Parent(s): e3c6bd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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'})"