Rausda6 commited on
Commit
e3740b6
·
verified ·
1 Parent(s): fd4d6d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -174,20 +174,20 @@ class PodcastGenerator:
174
  """Run LLM again to enforce strict Speaker 1/2 format"""
175
  prompt = f"""
176
  You are a podcast formatter.
177
- You just reformat text so that:
178
  - Every line begins with exactly and strictily with `Speaker 1:` or `Speaker 2:` (with colon)
179
- - No timestamps, names, parentheses, or extra formatting, no chapter names, no special characters beside ":"
180
- - No blank lines
181
  - Do not invent or change the content, do not add or use -any- person or speaker names, chapeter names , time stamps etc
182
  - you are not allowed to use anywhere in the text the character +#-*<>"()[]
183
- Example output:
184
  Speaker 1: Hello and welcome.
185
  Speaker 2: Thanks! Glad to be here.
186
  Speaker 1: ...
187
  Speaker 2: ...
188
  Speaker 1: ...
189
  Speaker 2: ...
190
- Now format the following:
191
  {raw_text}
192
  """
193
 
 
174
  """Run LLM again to enforce strict Speaker 1/2 format"""
175
  prompt = f"""
176
  You are a podcast formatter.
177
+ You just reformat text as if two persons have a conversation
178
  - Every line begins with exactly and strictily with `Speaker 1:` or `Speaker 2:` (with colon)
179
+ - No timestamps, no names, no parentheses, no extra formatting, no chapter names, no special characters beside ":"
180
+ - No blank lines allowed
181
  - Do not invent or change the content, do not add or use -any- person or speaker names, chapeter names , time stamps etc
182
  - you are not allowed to use anywhere in the text the character +#-*<>"()[]
183
+ Example output - you have to follow this structure:
184
  Speaker 1: Hello and welcome.
185
  Speaker 2: Thanks! Glad to be here.
186
  Speaker 1: ...
187
  Speaker 2: ...
188
  Speaker 1: ...
189
  Speaker 2: ...
190
+ Now format the following according to above instructions
191
  {raw_text}
192
  """
193