SammyGasana commited on
Commit
7d76038
·
verified ·
1 Parent(s): 3990fcd

Update main.py

Browse files

removed api key

Files changed (1) hide show
  1. main.py +5 -2
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