Spaces:
Paused
Paused
Update app_parallel.py
Browse files- app_parallel.py +3 -3
app_parallel.py
CHANGED
@@ -311,7 +311,7 @@ def parallel_processing():
|
|
311 |
try:
|
312 |
if request.method == 'POST':
|
313 |
# source_image = request.files['source_image']
|
314 |
-
image_path = '/home/user/app/images/
|
315 |
source_image = Image.open(image_path)
|
316 |
text_prompt = request.form['text_prompt']
|
317 |
|
@@ -336,8 +336,8 @@ def parallel_processing():
|
|
336 |
print('preprocess selected: ',preprocess)
|
337 |
# ref_pose_video = request.files.get('ref_pose', None)
|
338 |
|
339 |
-
|
340 |
-
|
341 |
app.config['text_prompt'] = text_prompt
|
342 |
print('Final output text prompt using openai: ',text_prompt)
|
343 |
|
|
|
311 |
try:
|
312 |
if request.method == 'POST':
|
313 |
# source_image = request.files['source_image']
|
314 |
+
image_path = '/home/user/app/images/marc_smile_enhanced.jpg'
|
315 |
source_image = Image.open(image_path)
|
316 |
text_prompt = request.form['text_prompt']
|
317 |
|
|
|
336 |
print('preprocess selected: ',preprocess)
|
337 |
# ref_pose_video = request.files.get('ref_pose', None)
|
338 |
|
339 |
+
response = openai_chat_avatar(text_prompt)
|
340 |
+
text_prompt = response.choices[0].message.content.strip()
|
341 |
app.config['text_prompt'] = text_prompt
|
342 |
print('Final output text prompt using openai: ',text_prompt)
|
343 |
|