Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import openai
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
# Use the openai API key
|
5 |
-
openai.api_key = "
|
6 |
model_engine = "text-davinci-003"
|
7 |
|
8 |
# Function to generate website content based on product name and description
|
|
|
1 |
import openai
|
2 |
+
import os
|
3 |
import gradio as gr
|
4 |
|
5 |
# Use the openai API key
|
6 |
+
openai.api_key = os.environ["API_TOKEN"]
|
7 |
model_engine = "text-davinci-003"
|
8 |
|
9 |
# Function to generate website content based on product name and description
|