WingNeville commited on
Commit
16eda08
·
verified ·
1 Parent(s): e0c1798

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ agent = MyFirstAgent()
45
  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Define Gradio interface function #############################
46
  def run_agent(query):
47
  # Retrieve API key from environment variable
48
- api_key = os.getenv("wingTokenRead")
49
  if not api_key:
50
  return "Error: wingTokenRead not found in environment variables. Please set it in Spaces Settings > Repository secrets at https://huggingface.co/spaces."
51
  return agent.run(query, api_key)
 
45
  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Define Gradio interface function #############################
46
  def run_agent(query):
47
  # Retrieve API key from environment variable
48
+ api_key = os.getenv("WingTokenAll")
49
  if not api_key:
50
  return "Error: wingTokenRead not found in environment variables. Please set it in Spaces Settings > Repository secrets at https://huggingface.co/spaces."
51
  return agent.run(query, api_key)