Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import openai
|
|
| 4 |
from gtts import gTTS # Google Text To Speech
|
| 5 |
|
| 6 |
# load the api key
|
| 7 |
-
openai.api_key = "
|
| 8 |
|
| 9 |
# takes an audio file from the microphone
|
| 10 |
# submits the raw audio to OpenAI for
|
|
|
|
| 4 |
from gtts import gTTS # Google Text To Speech
|
| 5 |
|
| 6 |
# load the api key
|
| 7 |
+
openai.api_key = os.environ["OPEN_AI_KEY"]
|
| 8 |
|
| 9 |
# takes an audio file from the microphone
|
| 10 |
# submits the raw audio to OpenAI for
|