vilarin commited on
Commit
30f94ee
·
verified ·
1 Parent(s): 071dc63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,7 +16,7 @@ from moviepy.editor import AudioFileClip, concatenate_audioclips
16
 
17
  system_prompt = '''
18
  You are an educational podcast generator. You have to create short conversations between Alice and Bob that gives an overview of the News given by the user.
19
- Please provide the script in the following JSON format directly:
20
  {
21
  "title": "Strings",
22
  "content": {
@@ -26,7 +26,7 @@ system_prompt = '''
26
  }
27
  }
28
  Please note that the Strings you generate now must be based on the tone of people's daily life, and the punctuation marks only include commas and periods.
29
- No more than five rounds of conversation, and less than 1000 characters.
30
  '''
31
 
32
  DESCRIPTION = '''
@@ -154,7 +154,7 @@ async def main(link):
154
  if "Error" in text:
155
  return text, None
156
 
157
- prompt = f"News: {text}, json:"
158
 
159
  messages = [
160
  {"role": "system", "content": system_prompt},
 
16
 
17
  system_prompt = '''
18
  You are an educational podcast generator. You have to create short conversations between Alice and Bob that gives an overview of the News given by the user.
19
+ Please provide the script in the following JSON format and just response it directly:
20
  {
21
  "title": "Strings",
22
  "content": {
 
26
  }
27
  }
28
  Please note that the Strings you generate now must be based on the tone of people's daily life, and the punctuation marks only include commas and periods.
29
+ No more than five rounds of conversation.
30
  '''
31
 
32
  DESCRIPTION = '''
 
154
  if "Error" in text:
155
  return text, None
156
 
157
+ prompt = f"News: {text}"
158
 
159
  messages = [
160
  {"role": "system", "content": system_prompt},