Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ OPENAI_API_KEY = os.getenv("OPEN_AI_API_KEY")
|
|
8 |
client = OpenAI(api_key=OPENAI_API_KEY)
|
9 |
OPEN_AI_MODEL = "gpt-4-1106-preview"
|
10 |
|
11 |
-
thread = gr.State(client.beta.threads.create())
|
12 |
-
|
13 |
thread_id = thread.id
|
14 |
|
15 |
def wait_on_run(run, thread):
|
|
|
8 |
client = OpenAI(api_key=OPENAI_API_KEY)
|
9 |
OPEN_AI_MODEL = "gpt-4-1106-preview"
|
10 |
|
11 |
+
# thread = gr.State(client.beta.threads.create())
|
12 |
+
thread = client.beta.threads.create()
|
13 |
thread_id = thread.id
|
14 |
|
15 |
def wait_on_run(run, thread):
|