Prudvireddy commited on
Commit
862e1e5
·
verified ·
1 Parent(s): c8ec45f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -61,12 +61,12 @@ if size=='9:16':
61
  stabilityai_api_key = st.text_input('Enter your stability ai API key here')
62
  mail = st.text_input('Enter you email address')
63
 
64
- if st.button('Mail me'):
65
  st.text(f"Video will be sent to {mail}")
66
  result = generate_video(topic, openai_api_key, stabilityai_api_key, mail)
67
- # with open(result, 'rb') as video_file:
68
- # video_data = video_file.read()
69
- # st.video(video_data)
70
 
71
  # Sidebar for Example Videos
72
  st.sidebar.markdown("### Example Videos")
 
61
  stabilityai_api_key = st.text_input('Enter your stability ai API key here')
62
  mail = st.text_input('Enter you email address')
63
 
64
+ if st.button('submit'):
65
  st.text(f"Video will be sent to {mail}")
66
  result = generate_video(topic, openai_api_key, stabilityai_api_key, mail)
67
+ with open(result, 'rb') as video_file:
68
+ video_data = video_file.read()
69
+ st.video(video_data)
70
 
71
  # Sidebar for Example Videos
72
  st.sidebar.markdown("### Example Videos")