Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def transcribe_audio(audio_path):
|
|
| 41 |
return result["text"]
|
| 42 |
|
| 43 |
# 📄 Summary generator with batching
|
| 44 |
-
|
| 45 |
summarizer = pipeline("summarization")
|
| 46 |
sentences = sent_tokenize(text)
|
| 47 |
|
|
|
|
| 41 |
return result["text"]
|
| 42 |
|
| 43 |
# 📄 Summary generator with batching
|
| 44 |
+
def generate_summary(text, default_max_len=130, default_min_len=30):
|
| 45 |
summarizer = pipeline("summarization")
|
| 46 |
sentences = sent_tokenize(text)
|
| 47 |
|