Spaces:
Sleeping
Sleeping
api secret added
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import openai
|
2 |
import gradio
|
|
|
3 |
|
4 |
-
openai.api_key = "
|
5 |
|
6 |
def generate_product_name(prompt):
|
7 |
model_engine = "text-davinci-003"
|
|
|
1 |
import openai
|
2 |
import gradio
|
3 |
+
import os
|
4 |
|
5 |
+
openai.api_key = os.environ["api"]
|
6 |
|
7 |
def generate_product_name(prompt):
|
8 |
model_engine = "text-davinci-003"
|