Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,10 @@ from openai import OpenAI
|
|
4 |
import os
|
5 |
#sk
|
6 |
apikey = os.getenv('openAI') #key from client
|
7 |
-
agentkey = os.getenv('
|
8 |
-
os.environ["OPENAI_API_KEY"] =
|
9 |
|
10 |
-
interpreter_assistant = OpenAIAssistantRunnable(assistant_id=) #, client = key
|
11 |
# output = interpreter_assistant.invoke({"content": "Hello?"})
|
12 |
# output[0].content[0].text.value
|
13 |
|
|
|
4 |
import os
|
5 |
#sk
|
6 |
apikey = os.getenv('openAI') #key from client
|
7 |
+
agentkey = os.getenv('asstID')
|
8 |
+
os.environ["OPENAI_API_KEY"] = apikey
|
9 |
|
10 |
+
interpreter_assistant = OpenAIAssistantRunnable(assistant_id= agentkey) #, client = key
|
11 |
# output = interpreter_assistant.invoke({"content": "Hello?"})
|
12 |
# output[0].content[0].text.value
|
13 |
|