Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
|
|
|
|
|
|
|
|
|
|
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 |
|