Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -308,8 +308,6 @@ class PodcastGenerator:
|
|
308 |
]
|
309 |
}
|
310 |
|
311 |
-
language_instruction = f"Generate in {language}" if language != "Auto Detect" else "Use appropriate language"
|
312 |
-
|
313 |
# Simplified and more reliable prompt
|
314 |
system_prompt = f"""Create a podcast script
|
315 |
|
@@ -320,12 +318,11 @@ Requirements:
|
|
320 |
- The podcast should be professional, in-depth, lively, witty and engaging, and hook the listener from the start.
|
321 |
- The input text might be disorganized or unformatted. Ignore any formatting inconsistencies or irrelevant details; your task is to distill the essential points,
|
322 |
- The two-person conversation must be in strictly following format: Each Line always leading with the two speaker names: Speaker 1 or Speaker 2, so each line starts with an "S". No other names allowed, no special characters
|
323 |
-
Example:
|
324 |
Speaker 1: Hello to our podcast
|
325 |
Speaker 2: Thanks to be here
|
326 |
Speaker 1: ...
|
327 |
Speaker 2: ...
|
328 |
-
- {language_instruction}
|
329 |
"""
|
330 |
|
331 |
#Example JSON structure:
|
|
|
308 |
]
|
309 |
}
|
310 |
|
|
|
|
|
311 |
# Simplified and more reliable prompt
|
312 |
system_prompt = f"""Create a podcast script
|
313 |
|
|
|
318 |
- The podcast should be professional, in-depth, lively, witty and engaging, and hook the listener from the start.
|
319 |
- The input text might be disorganized or unformatted. Ignore any formatting inconsistencies or irrelevant details; your task is to distill the essential points,
|
320 |
- The two-person conversation must be in strictly following format: Each Line always leading with the two speaker names: Speaker 1 or Speaker 2, so each line starts with an "S". No other names allowed, no special characters
|
321 |
+
Example, follow this strictly:
|
322 |
Speaker 1: Hello to our podcast
|
323 |
Speaker 2: Thanks to be here
|
324 |
Speaker 1: ...
|
325 |
Speaker 2: ...
|
|
|
326 |
"""
|
327 |
|
328 |
#Example JSON structure:
|