Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -431,8 +431,8 @@ def generate_video():
|
|
431 |
continue
|
432 |
|
433 |
else:
|
434 |
-
|
435 |
-
|
436 |
app.config['text_prompt'] = text_prompt
|
437 |
print('Final output text prompt using openai: ',text_prompt)
|
438 |
|
|
|
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 |
|