Commit
·
959cf33
1
Parent(s):
c5541dd
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def get_audio(url):
|
|
21 |
def get_text(url):
|
22 |
if url != '' : output_text_transcribe = ''
|
23 |
result = model.transcribe(get_audio(url))
|
24 |
-
return result['text']
|
25 |
|
26 |
def get_summary(article):
|
27 |
first_sentences = ' '.join(re.split(r'(?<=[.:;])\s', article)[:5])
|
|
|
21 |
def get_text(url):
|
22 |
if url != '' : output_text_transcribe = ''
|
23 |
result = model.transcribe(get_audio(url))
|
24 |
+
return result['text'].strip()
|
25 |
|
26 |
def get_summary(article):
|
27 |
first_sentences = ' '.join(re.split(r'(?<=[.:;])\s', article)[:5])
|