Spaces:
Runtime error
Runtime error
Errolmking
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,7 @@ from queue import Queue, Empty
|
|
21 |
from threading import Thread
|
22 |
import gradio as gr
|
23 |
|
|
|
24 |
MODEL = "gpt-3.5-turbo-16k"
|
25 |
|
26 |
# Defined a QueueCallback, which takes as a Queue object during initialization. Each new token is pushed to the queue.
|
|
|
21 |
from threading import Thread
|
22 |
import gradio as gr
|
23 |
|
24 |
+
openai.api_key = os.environ["OPENAI_API_KEY"]
|
25 |
MODEL = "gpt-3.5-turbo-16k"
|
26 |
|
27 |
# Defined a QueueCallback, which takes as a Queue object during initialization. Each new token is pushed to the queue.
|