Spaces:
Sleeping
Sleeping
test HF_TOKEN from server
Browse files
app.py
CHANGED
@@ -318,8 +318,8 @@ def get_video(url):
|
|
318 |
|
319 |
def summarize_youtube_video(url,force_transcribe,use_transcribe_api=False,api_token="",
|
320 |
temperature=1,words=250,use_llm_api=False,do_sample=False):
|
321 |
-
title,text,transcript_source = transcribe_youtube_video(url,force_transcribe,use_transcribe_api,
|
322 |
-
summary, summary_source = summarize_text(title,text,temperature,words,use_llm_api,
|
323 |
return summary, text, transcript_source, summary_source
|
324 |
|
325 |
html = '<iframe width="100%" height="315" src="https://www.youtube.com/embed/" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|
|
|
318 |
|
319 |
def summarize_youtube_video(url,force_transcribe,use_transcribe_api=False,api_token="",
|
320 |
temperature=1,words=250,use_llm_api=False,do_sample=False):
|
321 |
+
title,text,transcript_source = transcribe_youtube_video(url,force_transcribe,use_transcribe_api,HF_TOKEN)
|
322 |
+
summary, summary_source = summarize_text(title,text,temperature,words,use_llm_api,HF_TOKEN,do_sample)
|
323 |
return summary, text, transcript_source, summary_source
|
324 |
|
325 |
html = '<iframe width="100%" height="315" src="https://www.youtube.com/embed/" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|