Spaces:
Runtime error
Runtime error
Carlosjr23
commited on
Commit
•
6bdc2fc
1
Parent(s):
9159bfe
Update app.py
Browse files
app.py
CHANGED
@@ -6,10 +6,10 @@ import gradio as gr
|
|
6 |
|
7 |
|
8 |
#if you have OpenAI API key as an environment variable, enable the below
|
9 |
-
openai.api_key = os.getenv(
|
10 |
|
11 |
#if you have OpenAI API key as a string, enable the below
|
12 |
-
|
13 |
|
14 |
openai.api_key = OPEN_AI_KEY
|
15 |
|
|
|
6 |
|
7 |
|
8 |
#if you have OpenAI API key as an environment variable, enable the below
|
9 |
+
openai.api_key = os.getenv(OPEN_AI_KEY)
|
10 |
|
11 |
#if you have OpenAI API key as a string, enable the below
|
12 |
+
OPEN_AI_KEY = "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"
|
13 |
|
14 |
openai.api_key = OPEN_AI_KEY
|
15 |
|