Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
| 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)
|