Spaces:
Running
Running
SammyGasana
commited on
Update main.py
Browse filesfinal code: api issue fixed
main.py
CHANGED
@@ -8,20 +8,7 @@ import os
|
|
8 |
import time
|
9 |
import glob
|
10 |
from audio_predictions import AudioTranslation
|
11 |
-
# Load environment variables from .env file
|
12 |
-
# load_dotenv(dotenv_path='file.env')
|
13 |
|
14 |
-
# Retrieve API key from .env file
|
15 |
-
# API_KEY = os.getenv('OPENAI_API_KEY')
|
16 |
-
print('what we have:')
|
17 |
-
print(st.secrets)
|
18 |
-
print('-------------------------')
|
19 |
-
for key in os.environ.keys():
|
20 |
-
print(key)
|
21 |
-
print('end of keys')
|
22 |
-
print('-------------------------')
|
23 |
-
print('-------------------------')
|
24 |
-
print('-------------------------')
|
25 |
|
26 |
API_KEY = os.getenv('OPENAI_API_KEY')
|
27 |
if API_KEY:
|
|
|
8 |
import time
|
9 |
import glob
|
10 |
from audio_predictions import AudioTranslation
|
|
|
|
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
API_KEY = os.getenv('OPENAI_API_KEY')
|
14 |
if API_KEY:
|