WingNeville commited on
Commit
97c86f3
·
verified ·
1 Parent(s): a508010

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,9 +43,9 @@ agent = MyFirstAgent()
43
  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Define Gradio interface function #############################
44
  def run_agent(query):
45
  # Retrieve API key from environment variable
46
- api_key = os.getenv("wingTokenRead")
47
  if not api_key:
48
- return "Error: wingTokenRead not found in environment variables."
49
  return agent.run(query, api_key)
50
 
51
  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Create and launch Gradio interface #########################################
 
43
  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Define Gradio interface function #############################
44
  def run_agent(query):
45
  # Retrieve API key from environment variable
46
+ api_key = os.getenv("ReadOnly")
47
  if not api_key:
48
+ return "Error: ReadOnly not found in environment variables."
49
  return agent.run(query, api_key)
50
 
51
  #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Create and launch Gradio interface #########################################