Spanicin commited on
Commit
c81c4cf
·
verified ·
1 Parent(s): 4577955

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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/marc_smile_enhanced.jpg'
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