Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -381,7 +381,7 @@ def generate_video():
|
|
381 |
try:
|
382 |
if request.method == 'POST':
|
383 |
# source_image = request.files['source_image']
|
384 |
-
image_path = '/home/user/app/images/
|
385 |
source_image = Image.open(image_path)
|
386 |
text_prompt = request.form['text_prompt']
|
387 |
|
@@ -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 |
|
|
|
381 |
try:
|
382 |
if request.method == 'POST':
|
383 |
# source_image = request.files['source_image']
|
384 |
+
image_path = '/home/user/app/images/MArc_Smiling _Slightly.jpg'
|
385 |
source_image = Image.open(image_path)
|
386 |
text_prompt = request.form['text_prompt']
|
387 |
|
|
|
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 |
|