mdeniz1 commited on
Commit
c0fbb22
·
1 Parent(s): dfd7edf
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -5,8 +5,7 @@ from langchain_core.prompts import ChatPromptTemplate
5
  from langchain_core.output_parsers import StrOutputParser
6
  import os
7
 
8
- api_key = os.getenv('GROQ_API_KEY')
9
-
10
 
11
  def get_transcript(video_id):
12
  def transcript_to_string(transcript):
@@ -38,7 +37,7 @@ def summarize_video(video_url, language):
38
  max_tokens=None,
39
  timeout=None,
40
  max_retries=2,
41
- api_key=api_key
42
  )
43
 
44
  system_template = """Below you will see a text. Read the text. First provide the major points that they discuss and then provide summaries for each major point. Your response should be in the language specified below.
 
5
  from langchain_core.output_parsers import StrOutputParser
6
  import os
7
 
8
+ #api_key = os.getenv('GROQ_API_KEY')
 
9
 
10
  def get_transcript(video_id):
11
  def transcript_to_string(transcript):
 
37
  max_tokens=None,
38
  timeout=None,
39
  max_retries=2,
40
+ api_key="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"
41
  )
42
 
43
  system_template = """Below you will see a text. Read the text. First provide the major points that they discuss and then provide summaries for each major point. Your response should be in the language specified below.