Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,10 @@ def invoke(openai_api_key, serper_api_key, topic):
|
|
12 |
if (topic == ""):
|
13 |
raise gr.Error("Topic is required.")
|
14 |
|
15 |
-
|
16 |
#os.environ["SERPER_API_KEY"] = serper_api_key
|
17 |
|
18 |
-
OPENAI_API_KEY = openai_api_key
|
19 |
AGENTOPS_API_KEY = serper_api_key
|
20 |
|
21 |
#logging.basicConfig(level=logging.DEBUG)
|
|
|
12 |
if (topic == ""):
|
13 |
raise gr.Error("Topic is required.")
|
14 |
|
15 |
+
os.environ["OPENAI_API_KEY"] = openai_api_key
|
16 |
#os.environ["SERPER_API_KEY"] = serper_api_key
|
17 |
|
18 |
+
#OPENAI_API_KEY = openai_api_key
|
19 |
AGENTOPS_API_KEY = serper_api_key
|
20 |
|
21 |
#logging.basicConfig(level=logging.DEBUG)
|