Spaces:
Sleeping
Sleeping
Updated app.py
Browse files
app.py
CHANGED
@@ -369,9 +369,9 @@ else:
|
|
369 |
audio_blob = bucket.blob(audio_blob_name)
|
370 |
audio_url = audio_blob.generate_signed_url(expiration=timedelta(hours=1), method='GET')
|
371 |
|
372 |
-
summary = re.search(r"Summary
|
373 |
-
key_points = re.findall(r"- (.*?)\n", re.search(r"Key Points
|
374 |
-
action_items = re.findall(r"- (.*?)\n", re.search(r"Action Items
|
375 |
|
376 |
transcription_blob = bucket.blob(transcription_blob_name)
|
377 |
with transcription_blob.open("r") as file:
|
|
|
369 |
audio_blob = bucket.blob(audio_blob_name)
|
370 |
audio_url = audio_blob.generate_signed_url(expiration=timedelta(hours=1), method='GET')
|
371 |
|
372 |
+
summary = re.search(r"Summary(.*?)\n\n", summary_content, re.DOTALL).group(1).strip()
|
373 |
+
key_points = re.findall(r"- (.*?)\n", re.search(r"Key Points(.*?)\n\n", summary_content, re.DOTALL).group(1))
|
374 |
+
action_items = re.findall(r"- (.*?)\n", re.search(r"Action Items(.*)", summary_content, re.DOTALL).group(1))
|
375 |
|
376 |
transcription_blob = bucket.blob(transcription_blob_name)
|
377 |
with transcription_blob.open("r") as file:
|