Update app.py
Browse files216 unmodified lines21721821922022122222342 unmodified lines266267268269270271272216 unmodified lines# Diarization using OpenAIdiarization_prompt = f"""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:{transcription}42 unmodified linesif button_id == 'btn-summarize':summary_prompt = f"""Please provide a detailed summary of the following transcript. Include the main topics discussed and key points. Format it for readability:{transcript}216 unmodified lines21721821922022122222342 unmodified lines266267268269270271272216 unmodified lines# Diarization using OpenAIdiarization_prompt = f"""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:{transcription}42 unmodified linesif button_id == 'btn-summarize':summary_prompt = f"""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:{transcript}
app.py+2-2