Rausda6 commited on
Commit
145665d
·
verified ·
1 Parent(s): ea2131c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -8
app.py CHANGED
@@ -399,18 +399,24 @@ Requirements:
399
  - DO NOT copy the example below , only use it as conversation reference
400
  - The podcast should be professional, lively, witty and engaging, and hook the listener from the start.
401
  - The input text might be disorganized or unformatted. Ignore any formatting inconsistencies or irrelevant details; your task is to distill the essential points,
402
- Speaker 1: Hello to our podcast
403
- Speaker 2: Thanks to be here
404
- Speaker 1: ...
405
- Speaker 2: ...
406
- Speaker 1: ...
407
- Speaker 2: ...
408
- - Your generated script must be entirely in JSON format.
 
 
 
 
 
409
  """
410
 
411
  #Example JSON structure:
412
  #{json.dumps(example_json, indent=2)}
413
- user_prompt = f"\nInput Text:\n{prompt}\n\nPodcast Script:" #user_prompt = user_prompt = f"\nInput Text:\n{prompt}\n\nJSON:"# f"\nTopic: {prompt}\nJSON:"
 
414
  full_prompt = system_prompt + user_prompt
415
  add_log("🔍 Prompt Preview:\n" + full_prompt[:2000])
416
 
 
399
  - DO NOT copy the example below , only use it as conversation reference
400
  - The podcast should be professional, lively, witty and engaging, and hook the listener from the start.
401
  - The input text might be disorganized or unformatted. Ignore any formatting inconsistencies or irrelevant details; your task is to distill the essential points,
402
+
403
+ {{
404
+ "topic": "Short and engaging title",
405
+ "podcast": [
406
+ {{"speaker": 1, "line": "Welcome to the podcast."}},
407
+ {{"speaker": 2, "line": "Thank you, great to be here."}},
408
+ {{"speaker": 1, "line": "..."}},
409
+ {{"speaker": 2, "line": "..."}}
410
+ ]
411
+ }}
412
+
413
+ Return only valid JSON. Do not include explanation, markdown, or comments.
414
  """
415
 
416
  #Example JSON structure:
417
  #{json.dumps(example_json, indent=2)}
418
+ #user_prompt = f"\nInput Text:\n{prompt}\n\nPodcast Script:" #user_prompt = user_prompt = f"\nInput Text:\n{prompt}\n\nJSON:"# f"\nTopic: {prompt}\nJSON:"
419
+ user_prompt = f"\nInput Text:\n{prompt}\n\nJSON:"
420
  full_prompt = system_prompt + user_prompt
421
  add_log("🔍 Prompt Preview:\n" + full_prompt[:2000])
422