smakamali commited on
Commit
f6841c0
1 Parent(s): 9e80c9c

test HF_TOKEN from server

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,api_token)
322
- summary, summary_source = summarize_text(title,text,temperature,words,use_llm_api,api_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>'
 
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>'