Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
| 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')
|