Spaces:
Running
Running
Commit
·
37287c3
1
Parent(s):
54c743f
update: SI prompt
Browse files
app.py
CHANGED
@@ -337,10 +337,10 @@ def get_initial_analysis(
|
|
337 |
if ct == "si": # street interview
|
338 |
prompt = f"""This is a transcript for a street interview. Call Details are as follows:
|
339 |
User ID UID: {uid}
|
340 |
-
Speakers: {", ".join(speaker_mapping.values())}
|
341 |
Transcript: {transcript}
|
342 |
|
343 |
Your task is to analyze this street interview transcript and identify the final/best timestamps for each topic or question discussed. Here are the key rules:
|
|
|
344 |
|
345 |
1. For any topic/answer that appears multiple times in the transcript (even partially):
|
346 |
- The LAST occurrence is always considered the best version. If the same thing is said multiple times, the last time is the best, all previous times are considered as additional takes.
|
@@ -350,7 +350,7 @@ Your task is to analyze this street interview transcript and identify the final/
|
|
350 |
|
351 |
2. Introduction handling:
|
352 |
- Question 1 is ALWAYS the speaker's introduction/self-introduction
|
353 |
-
- If someone introduces themselves multiple times, use the last
|
354 |
- Include all variations of how they state their name/background
|
355 |
- List ALL introduction timestamps chronologically
|
356 |
|
|
|
337 |
if ct == "si": # street interview
|
338 |
prompt = f"""This is a transcript for a street interview. Call Details are as follows:
|
339 |
User ID UID: {uid}
|
|
|
340 |
Transcript: {transcript}
|
341 |
|
342 |
Your task is to analyze this street interview transcript and identify the final/best timestamps for each topic or question discussed. Here are the key rules:
|
343 |
+
The user might repeat the answer to the question sometimes, you need to pick the very last answer intelligently
|
344 |
|
345 |
1. For any topic/answer that appears multiple times in the transcript (even partially):
|
346 |
- The LAST occurrence is always considered the best version. If the same thing is said multiple times, the last time is the best, all previous times are considered as additional takes.
|
|
|
350 |
|
351 |
2. Introduction handling:
|
352 |
- Question 1 is ALWAYS the speaker's introduction/self-introduction
|
353 |
+
- If someone introduces themselves multiple times, use the last introduction as best answer
|
354 |
- Include all variations of how they state their name/background
|
355 |
- List ALL introduction timestamps chronologically
|
356 |
|