Spaces:
Sleeping
Sleeping
SammyGasana
commited on
Update main.py
Browse filesremoved api key
main.py
CHANGED
@@ -9,12 +9,15 @@ 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 |
-
# Set the API key for OpenAI
|
17 |
openai.api_key = API_KEY
|
|
|
|
|
18 |
dataset_path = 'updated_company_tweets.csv'
|
19 |
|
20 |
@st.cache_data
|
|
|
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 |
+
|
17 |
API_KEY = os.getenv('OPENAI_API_KEY')
|
|
|
18 |
openai.api_key = API_KEY
|
19 |
+
# Set the API key for OpenAI
|
20 |
+
# openai.api_key = API_KEY
|
21 |
dataset_path = 'updated_company_tweets.csv'
|
22 |
|
23 |
@st.cache_data
|