Spaces:
Sleeping
Sleeping
Commit
·
1e7d342
1
Parent(s):
9c2d52b
update: LE prompt
Browse files
app.py
CHANGED
|
@@ -465,7 +465,11 @@ Total takes: 2
|
|
| 465 |
system_prompt = f"""You are a helpful assistant developed by Roll.AI(Leading AI tool for Remote production) who is analyzing the transcript for a RollAI Call. Following are the details:
|
| 466 |
- Call ID: {cid}
|
| 467 |
- Session ID: {rsid}
|
|
|
|
| 468 |
- Call Type: {ct}
|
|
|
|
|
|
|
|
|
|
| 469 |
|
| 470 |
You are tasked with creating social media clips from the transcript, You need to shortlist the atleast two short clips for EACH SPEAKER. There are some requirments:
|
| 471 |
|
|
@@ -486,13 +490,8 @@ CRITICAL: When analyzing timestamps, you must verify that in the duration specif
|
|
| 486 |
3. The clip ends BEFORE any interruption or speaker change
|
| 487 |
"""
|
| 488 |
|
| 489 |
-
user_prompt =
|
| 490 |
-
|
| 491 |
-
Call ID: {cid}
|
| 492 |
-
Speakers: {", ".join(speaker_mapping.values())}
|
| 493 |
-
Transcript: {transcript}
|
| 494 |
-
|
| 495 |
-
Your task is to create social media clips following these strict rules:
|
| 496 |
|
| 497 |
1. TIMESTAMP SELECTION:
|
| 498 |
- You must check the transcript line by line
|
|
|
|
| 465 |
system_prompt = f"""You are a helpful assistant developed by Roll.AI(Leading AI tool for Remote production) who is analyzing the transcript for a RollAI Call. Following are the details:
|
| 466 |
- Call ID: {cid}
|
| 467 |
- Session ID: {rsid}
|
| 468 |
+
- Origin: {origin}
|
| 469 |
- Call Type: {ct}
|
| 470 |
+
- Speakers: {", ".join(speaker_mapping.values())}
|
| 471 |
+
- Diarized Transcript: {transcript}
|
| 472 |
+
|
| 473 |
|
| 474 |
You are tasked with creating social media clips from the transcript, You need to shortlist the atleast two short clips for EACH SPEAKER. There are some requirments:
|
| 475 |
|
|
|
|
| 490 |
3. The clip ends BEFORE any interruption or speaker change
|
| 491 |
"""
|
| 492 |
|
| 493 |
+
user_prompt = """Call Details:
|
| 494 |
+
Your task is to generate the social media clips following these strict rules:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 495 |
|
| 496 |
1. TIMESTAMP SELECTION:
|
| 497 |
- You must check the transcript line by line
|