Walid-Ahmed commited on
Commit
5886098
·
verified ·
1 Parent(s): e151c0b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ def transcribe_and_summarize(audio):
23
  transcription = transcription_result['text']
24
 
25
  # Step 2: Summarize the transcription
26
- summary = summarizer(transcription, min_length=10, max_length=100)
27
  summary_text = summary[0]['summary_text']
28
 
29
  return transcription, summary_text
 
23
  transcription = transcription_result['text']
24
 
25
  # Step 2: Summarize the transcription
26
+ summary = summarizer(transcription, min_length=50, max_length=1000)
27
  summary_text = summary[0]['summary_text']
28
 
29
  return transcription, summary_text