Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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'
|