AhmadMustafa commited on
Commit
2b92982
·
1 Parent(s): 3c9d498

update: live event prompt test2

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -383,8 +383,7 @@ Total takes: 2
383
  - [Take 1. <div id='topic' style="display: inline"> 20s at 25:45]({link_start}://{{origin}}/collab/{{cid}}/{{rsid}}?st={{1245}}&et={{1265}})
384
  - [Take 3 (Best). <div id='topic' style="display: inline"> 5s at 10:13 </div>]({link_start}://roll.ai/colab/1234aq_12314/51234151?st=613&et=618)"""
385
  else:
386
- prompt = f"""<div id="initial_message">
387
- Given the transcript {transcript}, analyze speakers' discussions to identify compelling social media clips. For each speaker, identify key topics that mention people, news, events, trends, or sources.
388
 
389
  Format requirements:
390
 
@@ -413,9 +412,9 @@ Format requirements:
413
 
414
  4. TOPIC SELECTION:
415
  - Prioritize engaging, viral-worthy content
416
- - Minimum 2 topics per speaker, aim for 3 if available
417
  - Topics should be self-contained discussions within the timestamp
418
- - Skip speakers if fewer than 2 compelling topics found</div>
419
  """
420
  print(prompt)
421
  completion = client.chat.completions.create(
@@ -426,12 +425,13 @@ Format requirements:
426
  "content": f"""You are analyzing a transcript for Call ID: {cid}, Session ID: {rsid}, Origin: {origin}, Call Type: {ct}.
427
 
428
  CORE REQUIREMENTS:
429
- 1. TIMESTAMPS: Each clip must contain ONLY the specified speaker's dialogue about a single topic. No overlapping dialogue from other speakers.
430
- 2. DURATION: Clips must be 20-60 seconds long
431
- 3. CONTENT: Select engaging, viral-worthy topics
432
- 4. COVERAGE: Minimum 2 topics per speaker, aim for 3 if good content exists
 
433
 
434
- Prioritize accuracy in timestamp selection over quantity of clips.""",
435
  },
436
  {"role": "user", "content": prompt},
437
  ],
 
383
  - [Take 1. <div id='topic' style="display: inline"> 20s at 25:45]({link_start}://{{origin}}/collab/{{cid}}/{{rsid}}?st={{1245}}&et={{1265}})
384
  - [Take 3 (Best). <div id='topic' style="display: inline"> 5s at 10:13 </div>]({link_start}://roll.ai/colab/1234aq_12314/51234151?st=613&et=618)"""
385
  else:
386
+ prompt = f"""Given the transcript {transcript}, analyze speakers' discussions to identify compelling social media clips. For each speaker, identify key topics that mention people, news, events, trends, or sources.
 
387
 
388
  Format requirements:
389
 
 
412
 
413
  4. TOPIC SELECTION:
414
  - Prioritize engaging, viral-worthy content
415
+ - Minimum 2 topics per speaker, aim for 3 if available (SKIP THE HOST if no compelling content)
416
  - Topics should be self-contained discussions within the timestamp
417
+ - Skip speakers if fewer than 2 compelling topics found
418
  """
419
  print(prompt)
420
  completion = client.chat.completions.create(
 
425
  "content": f"""You are analyzing a transcript for Call ID: {cid}, Session ID: {rsid}, Origin: {origin}, Call Type: {ct}.
426
 
427
  CORE REQUIREMENTS:
428
+ 1. TIMESTAMPS: Each clip must contain ONLY the specified speaker's dialogue about a single topic. No overlapping dialogue from other speakers. YOU NEED TO BE VERY CAREFUL ABOUT THIS RULE. YOU HAVE THE TRANSCRIPT AND YOU CAN SEE WHO IS SPEAKING AT WHAT TIME SO BE VERY VERY CARAEFUL AND ONLY INCLUDE THE DIALOGUE OF THE SPEAKER YOU ARE MAKING THE CLIP FOR.
429
+ 2. DURATION: Clips should be between 20-60 seconds long.
430
+ 3. CONTENT: Select engaging, viral-worthy topics. Avoid mundane or irrelevant content
431
+ 4. COVERAGE: Minimum 2 topics per speaker, aim for 3 if good content exists.
432
+ 5. YOU CAN IGNORE THE HOST IF NO COMPELLING CONTENT IS FOUND.
433
 
434
+ YOU SHOULD Prioritize accuracy in timestamp at every cost.""",
435
  },
436
  {"role": "user", "content": prompt},
437
  ],