Spaces:
Sleeping
Sleeping
Commit
·
073cdc5
1
Parent(s):
88dab44
update
Browse files
app.py
CHANGED
@@ -2,9 +2,8 @@ import gradio as gr
|
|
2 |
import openai
|
3 |
import os
|
4 |
from dotenv import load_dotenv
|
5 |
-
|
6 |
# Set up OpenAI API key
|
7 |
-
load_dotenv()
|
8 |
api_key = os.getenv("OPENAI_API_KEY")
|
9 |
|
10 |
if not api_key:
|
|
|
2 |
import openai
|
3 |
import os
|
4 |
from dotenv import load_dotenv
|
5 |
+
load_dotenv
|
6 |
# Set up OpenAI API key
|
|
|
7 |
api_key = os.getenv("OPENAI_API_KEY")
|
8 |
|
9 |
if not api_key:
|