Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import tempfile
|
4 |
-
|
5 |
|
6 |
# Set an environment variable for key
|
7 |
os.environ['OPENAI_API_KEY'] = os.environ.get('OPENAI_API_KEY')
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import tempfile
|
4 |
+
from openai import OpenAI
|
5 |
|
6 |
# Set an environment variable for key
|
7 |
os.environ['OPENAI_API_KEY'] = os.environ.get('OPENAI_API_KEY')
|