Spaces:
Runtime error
Runtime error
..
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ from langchain_core.prompts import ChatPromptTemplate
|
|
5 |
from langchain_core.output_parsers import StrOutputParser
|
6 |
import os
|
7 |
|
8 |
-
|
9 |
|
10 |
def get_transcript(video_id):
|
11 |
def transcript_to_string(transcript):
|
@@ -37,7 +37,7 @@ def summarize_video(video_url, language):
|
|
37 |
max_tokens=None,
|
38 |
timeout=None,
|
39 |
max_retries=2,
|
40 |
-
api_key=
|
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.
|
|
|
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=api_key
|
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.
|