Changed title
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ if "image" not in st.session_state:
|
|
91 |
if "video" not in st.session_state:
|
92 |
st.session_state.video = None
|
93 |
|
94 |
-
st.title("
|
95 |
st.session_state.audio_input = st.file_uploader("Insert Your Audio Clips Here",type = ["wav","mp3"], key = "Audio input")
|
96 |
if st.session_state.audio_input:
|
97 |
audio_input = st.session_state.audio_input
|
@@ -101,9 +101,8 @@ if st.session_state.audio_input:
|
|
101 |
captions = st.session_state.captions
|
102 |
st.text(captions)
|
103 |
if st.session_state.captions:
|
104 |
-
if st.button("Generate Image
|
105 |
st.session_state.image = image_service(st.session_state.captions).images[0]
|
106 |
-
image = st.session_state.image
|
107 |
# video = video_model(
|
108 |
# prompt = st.session_state.captions,
|
109 |
# image=st.session_state.image,
|
@@ -111,8 +110,8 @@ if st.session_state.audio_input:
|
|
111 |
# ).frames[0]
|
112 |
# st.session_state.video = video
|
113 |
# export_to_video(video, "generated.mp4", fps=7)
|
114 |
-
st.image(image)
|
115 |
-
|
116 |
|
117 |
|
118 |
|
|
|
91 |
if "video" not in st.session_state:
|
92 |
st.session_state.video = None
|
93 |
|
94 |
+
st.title("Insage")
|
95 |
st.session_state.audio_input = st.file_uploader("Insert Your Audio Clips Here",type = ["wav","mp3"], key = "Audio input")
|
96 |
if st.session_state.audio_input:
|
97 |
audio_input = st.session_state.audio_input
|
|
|
101 |
captions = st.session_state.captions
|
102 |
st.text(captions)
|
103 |
if st.session_state.captions:
|
104 |
+
if st.button("Generate Image from text prompt"):
|
105 |
st.session_state.image = image_service(st.session_state.captions).images[0]
|
|
|
106 |
# video = video_model(
|
107 |
# prompt = st.session_state.captions,
|
108 |
# image=st.session_state.image,
|
|
|
110 |
# ).frames[0]
|
111 |
# st.session_state.video = video
|
112 |
# export_to_video(video, "generated.mp4", fps=7)
|
113 |
+
st.image(st.session_state.image)
|
114 |
+
|
115 |
|
116 |
|
117 |
|