Update app.py
Browse files
app.py
CHANGED
@@ -217,7 +217,7 @@ def process_media(file_path, is_url=False):
|
|
217 |
|
218 |
# Diarization using OpenAI
|
219 |
diarization_prompt = f"""
|
220 |
-
The following is a transcription of a conversation. Please identify different speakers and label them as Speaker 1, Speaker 2, etc. Format the output as a series of speaker labels followed by their dialogue. Here's the transcription:
|
221 |
|
222 |
{transcription}
|
223 |
|
@@ -266,7 +266,7 @@ def handle_document_actions(summarize_clicks, minutes_clicks, download_clicks, t
|
|
266 |
|
267 |
if button_id == 'btn-summarize':
|
268 |
summary_prompt = f"""
|
269 |
-
Please provide a detailed summary of the following transcript. Include the main topics discussed and key points. Format it for readability:
|
270 |
|
271 |
{transcript}
|
272 |
|
|
|
217 |
|
218 |
# Diarization using OpenAI
|
219 |
diarization_prompt = f"""
|
220 |
+
The following is a transcription of a conversation. Please identify different speakers and label them as Speaker 1, Speaker 2, etc. unless the speaker idententifies themselves by name in that case use their name. Format the output as a series of speaker labels followed by their dialogue. Here's the transcription:
|
221 |
|
222 |
{transcription}
|
223 |
|
|
|
266 |
|
267 |
if button_id == 'btn-summarize':
|
268 |
summary_prompt = f"""
|
269 |
+
Please provide a detailed summary of the following transcript. Include the main topics discussed and key points. Format it for readability in paragraph format writing it wikipedia style:
|
270 |
|
271 |
{transcript}
|
272 |
|