Prudvireddy commited on
Commit
85f21f9
·
verified ·
1 Parent(s): 7736bad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -22,6 +22,8 @@ def generate_video(topic, openai_api_key, stabilityai_api_key, user_mail):
22
  verbose=2
23
  )
24
  result = crew.kickoff(inputs={'topic': topic, 'model' : model})
 
 
25
  send_mail(user_mail, result)
26
  return result
27
 
 
22
  verbose=2
23
  )
24
  result = crew.kickoff(inputs={'topic': topic, 'model' : model})
25
+ if 'tmp' in result:
26
+ result = final_video_filename.split('/')[-1]
27
  send_mail(user_mail, result)
28
  return result
29