Spaces:
Runtime error
Runtime error
Prudvireddy
commited on
Update app.py
Browse files
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('
|
65 |
st.text(f"Video will be sent to {mail}")
|
66 |
result = generate_video(topic, openai_api_key, stabilityai_api_key, mail)
|
67 |
-
|
68 |
-
|
69 |
-
|
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")
|