yooke commited on
Commit
04d4c9e
·
verified ·
1 Parent(s): 014bad5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -145,9 +145,9 @@ class BasicAgent:
145
  if not google_api_key:
146
  raise ValueError("GOOGLE_API_KEY environment variable not set.")
147
 
148
- # Check if the global credential setup was successful
149
- if not CREDENTIALS_CONFIGURED:
150
- raise ValueError("Google Cloud credentials could not be configured. Check startup logs and HF Secrets (ensure 'GOOGLE_APPLICATION_CREDENTIALS_JSON' is set correctly).")
151
 
152
  # 设置环境变量,使LiteLLM能够使用DeepSeek API密钥
153
  os.environ["DEEPSEEK_API_KEY"] = deepseek_api_key
@@ -340,4 +340,4 @@ if __name__ == "__main__":
340
  print("-"*(60 + len(" App Starting ")) + "\n")
341
 
342
  print("Launching Gradio Interface for Basic Agent Evaluation...")
343
- demo.launch(debug=True, share=False)
 
145
  if not google_api_key:
146
  raise ValueError("GOOGLE_API_KEY environment variable not set.")
147
 
148
+ # # Check if the global credential setup was successful
149
+ # if not CREDENTIALS_CONFIGURED:
150
+ # raise ValueError("Google Cloud credentials could not be configured. Check startup logs and HF Secrets (ensure 'GOOGLE_APPLICATION_CREDENTIALS_JSON' is set correctly).")
151
 
152
  # 设置环境变量,使LiteLLM能够使用DeepSeek API密钥
153
  os.environ["DEEPSEEK_API_KEY"] = deepseek_api_key
 
340
  print("-"*(60 + len(" App Starting ")) + "\n")
341
 
342
  print("Launching Gradio Interface for Basic Agent Evaluation...")
343
+ demo.launch(debug=True, share=True)