Update app.py
Browse files
app.py
CHANGED
@@ -431,8 +431,8 @@ def generate_video():
|
|
431 |
continue
|
432 |
|
433 |
else:
|
434 |
-
response = openai_chat_avatar(text_prompt)
|
435 |
-
text_prompt = response.choices[0].message.content.strip()
|
436 |
app.config['text_prompt'] = text_prompt
|
437 |
print('Final output text prompt using openai: ',text_prompt)
|
438 |
|
@@ -487,7 +487,7 @@ def generate_video():
|
|
487 |
set_api_key("92e149985ea2732b4359c74346c3daee")
|
488 |
# voice = clone(name = "User Cloned Voice",
|
489 |
# files = [user_voice_path] )
|
490 |
-
voice = Voice(voice_id="
|
491 |
stability=0.71, similarity_boost=0.5, style=0.0, use_speaker_boost=True),)
|
492 |
|
493 |
audio = generate(text = text_prompt, voice = voice, model = "eleven_multilingual_v2",stream=True, latency=4)
|
|
|
431 |
continue
|
432 |
|
433 |
else:
|
434 |
+
# response = openai_chat_avatar(text_prompt)
|
435 |
+
# text_prompt = response.choices[0].message.content.strip()
|
436 |
app.config['text_prompt'] = text_prompt
|
437 |
print('Final output text prompt using openai: ',text_prompt)
|
438 |
|
|
|
487 |
set_api_key("92e149985ea2732b4359c74346c3daee")
|
488 |
# voice = clone(name = "User Cloned Voice",
|
489 |
# files = [user_voice_path] )
|
490 |
+
voice = Voice(voice_id="1WYvmov23j6JQSNN3OzU",name="Marc",settings=VoiceSettings(
|
491 |
stability=0.71, similarity_boost=0.5, style=0.0, use_speaker_boost=True),)
|
492 |
|
493 |
audio = generate(text = text_prompt, voice = voice, model = "eleven_multilingual_v2",stream=True, latency=4)
|