Abu1998 commited on
Commit
ba80f08
·
verified ·
1 Parent(s): 61f69fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -6,7 +6,8 @@ from langchain.text_splitter import RecursiveCharacterTextSplitter
6
  from dotenv import load_dotenv, find_dotenv
7
 
8
  # Specify the path to your .env file
9
- env_path = '/home/USER/.env/openai_api' # Change the Path
 
10
  # Load the OpenAI API key from the .env file
11
  load_dotenv(env_path)
12
  openai.api_key = os.getenv('OPENAI_API_KEY')
 
6
  from dotenv import load_dotenv, find_dotenv
7
 
8
  # Specify the path to your .env file
9
+ #https://huggingface.co/spaces/Abu1998/YouTubeTranscriptApi1/resolve/main/.env
10
+ env_path = 'YouTubeTranscriptApi1/resolve/main/.env' # Change the Path
11
  # Load the OpenAI API key from the .env file
12
  load_dotenv(env_path)
13
  openai.api_key = os.getenv('OPENAI_API_KEY')