Spanicin commited on
Commit
24326ff
·
verified ·
1 Parent(s): 7f3b73d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -339,7 +339,6 @@ def generate_video():
339
  try:
340
  data = json.loads(json_data)
341
  text_prompt = data.get('content')
342
- text_prompt_without_cititation = remove_brackets(text_prompt)
343
  app.config['text_prompt'] = text_prompt
344
  end_time_ryze = time.time()
345
  diff = end_time_ryze - start_time_ryze
@@ -354,10 +353,12 @@ def generate_video():
354
 
355
  else:
356
  print("No Ryze database found")
357
-
358
  source_image_path = save_uploaded_file(source_image, 'source_image.png',TEMP_DIR)
359
  print(source_image_path)
360
-
 
 
361
  driven_audio_path = generate_audio(voice_cloning, voice_gender, text_prompt_without_cititation)
362
 
363
  save_dir = tempfile.mkdtemp(dir=TEMP_DIR.name)
 
339
  try:
340
  data = json.loads(json_data)
341
  text_prompt = data.get('content')
 
342
  app.config['text_prompt'] = text_prompt
343
  end_time_ryze = time.time()
344
  diff = end_time_ryze - start_time_ryze
 
353
 
354
  else:
355
  print("No Ryze database found")
356
+
357
  source_image_path = save_uploaded_file(source_image, 'source_image.png',TEMP_DIR)
358
  print(source_image_path)
359
+
360
+ text_prompt_without_cititation = remove_brackets(text_prompt)
361
+ print('Final output text prompt for avatar: ',text_prompt_without_cititation)
362
  driven_audio_path = generate_audio(voice_cloning, voice_gender, text_prompt_without_cititation)
363
 
364
  save_dir = tempfile.mkdtemp(dir=TEMP_DIR.name)