wuhp commited on
Commit
2ff6b11
·
verified ·
1 Parent(s): d000f0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -62,6 +62,7 @@ def create_space_backend(username: str, hf_token: str, repo_name: str, sdk: str)
62
  return repo_id
63
 
64
  # --- Chat init & respond handlers ---
 
65
  def init_chat(repo_name: str, sdk: str, api_key: str, hf_profile: gr.OAuthProfile, hf_token: gr.OAuthToken):
66
  global client, chat
67
  # Validate inputs
 
62
  return repo_id
63
 
64
  # --- Chat init & respond handlers ---
65
+ def init_chat(repo_name: str, sdk: str, api_key: str, hf_profile: gr.OAuthProfile=None, hf_token: gr.OAuthToken=None):
66
  def init_chat(repo_name: str, sdk: str, api_key: str, hf_profile: gr.OAuthProfile, hf_token: gr.OAuthToken):
67
  global client, chat
68
  # Validate inputs