Manasa1 commited on
Commit
6ab2c25
·
verified ·
1 Parent(s): 7d8088b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -25,8 +25,9 @@ def generate_comedy_script(prompt):
25
  {"role": "user", "content": "write a comedy scipt on {prompt}"}
26
  ],
27
  model="llama3-8b-8192")
28
- script = response['choices'][0]['message']['content']
29
  return script
 
30
  # Convert Text to Speech using Coqui TTS
31
  def text_to_speech(script):
32
  output_audio = 'output.wav'
 
25
  {"role": "user", "content": "write a comedy scipt on {prompt}"}
26
  ],
27
  model="llama3-8b-8192")
28
+ script = response.choices[0].message.content
29
  return script
30
+
31
  # Convert Text to Speech using Coqui TTS
32
  def text_to_speech(script):
33
  output_audio = 'output.wav'