Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
import openai
|
| 2 |
-
|
| 3 |
import gradio as gr
|
| 4 |
def get_completion(prompt, model="gpt-3.5-turbo"):
|
| 5 |
messages = [{"role": "user", "content": prompt}]
|
|
|
|
| 1 |
import openai
|
| 2 |
+
os.environ["OPENAI_API_KEY"] = os.getenv('open_ai')
|
| 3 |
import gradio as gr
|
| 4 |
def get_completion(prompt, model="gpt-3.5-turbo"):
|
| 5 |
messages = [{"role": "user", "content": prompt}]
|