Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,11 @@ def invoke(openai_api_key, serper_api_key, topic):
|
|
14 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
15 |
os.environ["SERPER_API_KEY"] = serper_api_key
|
16 |
|
17 |
-
|
|
|
|
|
|
|
|
|
18 |
|
19 |
return get_crew().kickoff(inputs={"topic": topic})
|
20 |
|
|
|
14 |
os.environ["OPENAI_API_KEY"] = openai_api_key
|
15 |
os.environ["SERPER_API_KEY"] = serper_api_key
|
16 |
|
17 |
+
OPENAI_API_KEY = os.environ["OPENAI_API_KEY"]
|
18 |
+
AGENTOPS_API_KEY = os.environ["AGENTOPS_API_KEY"]
|
19 |
+
logging.basicConfig(level=logging.DEBUG)
|
20 |
+
openai = OpenAI(api_key=OPENAI_API_KEY)
|
21 |
+
agentops.init(AGENTOPS_API_KEY)
|
22 |
|
23 |
return get_crew().kickoff(inputs={"topic": topic})
|
24 |
|