Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,13 +8,11 @@ LLM = "gpt-4o"
|
|
8 |
def invoke(openai_api_key, serper_api_key, topic):
|
9 |
if (openai_api_key == ""):
|
10 |
raise gr.Error("OpenAI API Key is required.")
|
11 |
-
if (serper_api_key == ""):
|
12 |
-
raise gr.Error("Serper API Key is required.")
|
13 |
if (topic == ""):
|
14 |
raise gr.Error("Topic is required.")
|
15 |
|
16 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
17 |
-
os.environ["SERPER_API_KEY"] = serper_api_key
|
18 |
|
19 |
AGENTOPS_API_KEY = os.environ["AGENTOPS_API_KEY"]
|
20 |
|
|
|
8 |
def invoke(openai_api_key, serper_api_key, topic):
|
9 |
if (openai_api_key == ""):
|
10 |
raise gr.Error("OpenAI API Key is required.")
|
|
|
|
|
11 |
if (topic == ""):
|
12 |
raise gr.Error("Topic is required.")
|
13 |
|
14 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
15 |
+
#os.environ["SERPER_API_KEY"] = serper_api_key
|
16 |
|
17 |
AGENTOPS_API_KEY = os.environ["AGENTOPS_API_KEY"]
|
18 |
|