SaladSlayer00 commited on
Commit
33c9e83
1 Parent(s): ea8a58a

the new app with translation support, youtube and summarizaiton, pdf, tts

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ translator = pipeline("translation", model="Helsinki-NLP/opus-mt-it-en")
16
  def process_audio(file_path):
17
  text = transcription_pipe(file_path)["text"]
18
  summary = summarizer(text, min_length=25, max_length=50)[0]["summary_text"]
19
- translation = translator(summary)[0]["translation_text"]
20
  return text, summary, translation
21
 
22
  def download_youtube_audio(yt_url):
 
16
  def process_audio(file_path):
17
  text = transcription_pipe(file_path)["text"]
18
  summary = summarizer(text, min_length=25, max_length=50)[0]["summary_text"]
19
+ translation = translator(text)[0]["translation_text"]
20
  return text, summary, translation
21
 
22
  def download_youtube_audio(yt_url):