Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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
|