Spaces:
Sleeping
Sleeping
httpdaniel
commited on
Commit
·
7da1690
1
Parent(s):
4a8bc74
Updating proxy
Browse files
app.py
CHANGED
@@ -44,7 +44,11 @@ def get_video_metadata(video_id):
|
|
44 |
def get_transcript_content(video_id):
|
45 |
try:
|
46 |
transcript = YouTubeTranscriptApi.get_transcript(
|
47 |
-
video_id,
|
|
|
|
|
|
|
|
|
48 |
)
|
49 |
transcript_content = parse_transcript(transcript)
|
50 |
return transcript_content
|
@@ -81,9 +85,7 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
|
|
81 |
gr.Markdown(
|
82 |
"<H3>Provide a link to a YouTube video and get a transcription and summary</H3>"
|
83 |
)
|
84 |
-
gr.Markdown(
|
85 |
-
"<H6>This project uses the youtube_transcript_api to fetch a transcript from a YouTube link, pytube to get video metadata, and Mistral 7B to generate a summary.</H6>"
|
86 |
-
)
|
87 |
|
88 |
with gr.Row():
|
89 |
with gr.Column(scale=1):
|
|
|
44 |
def get_transcript_content(video_id):
|
45 |
try:
|
46 |
transcript = YouTubeTranscriptApi.get_transcript(
|
47 |
+
video_id,
|
48 |
+
proxies={
|
49 |
+
"http": "http://50.172.75.114:80",
|
50 |
+
"https": "https://50.172.75.114:80",
|
51 |
+
},
|
52 |
)
|
53 |
transcript_content = parse_transcript(transcript)
|
54 |
return transcript_content
|
|
|
85 |
gr.Markdown(
|
86 |
"<H3>Provide a link to a YouTube video and get a transcription and summary</H3>"
|
87 |
)
|
88 |
+
gr.Markdown("<H6>Due to YouTube </H6>")
|
|
|
|
|
89 |
|
90 |
with gr.Row():
|
91 |
with gr.Column(scale=1):
|