shikharyashmaurya commited on
Commit
e672f4a
1 Parent(s): d03c658

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,8 +5,9 @@ import google.generativeai as genai
5
 
6
  from youtube_transcript_api import YouTubeTranscriptApi
7
 
8
- # genai.configure(api_key=os.getenv(GOOGLE_API_KEY))
9
- genai.configure(api_key='AIzaSyCmZOGrEA5wTyeTg_a6gDsphZpCVnPl37k')
 
10
 
11
  prompt="""You are Yotube video summarizer. You will be taking the transcript text
12
  and summarizing the entire video and providing the important summary in points
 
5
 
6
  from youtube_transcript_api import YouTubeTranscriptApi
7
 
8
+ secret_key = os.getenv("SECRET_KEY")
9
+
10
+ genai.configure(api_key=secret_key)
11
 
12
  prompt="""You are Yotube video summarizer. You will be taking the transcript text
13
  and summarizing the entire video and providing the important summary in points