Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def transcribe_audio(audio_path):
|
|
36 |
return transcriber(audio_path)["text"]
|
37 |
|
38 |
def summarize_text(text):
|
39 |
-
return summarizer(text, max_length=
|
40 |
|
41 |
def rate_quality(text):
|
42 |
result = rating_pipe(text[:512])[0]
|
|
|
36 |
return transcriber(audio_path)["text"]
|
37 |
|
38 |
def summarize_text(text):
|
39 |
+
return summarizer(text, max_length=150, min_length=50, do_sample=False)[0]['summary_text']
|
40 |
|
41 |
def rate_quality(text):
|
42 |
result = rating_pipe(text[:512])[0]
|