Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,11 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
st.title("Image Generation")
|
4 |
+
|
5 |
+
|
6 |
+
prompt = st.text_input("Enter a prompt to generate an image:", value="pipeline under the sea")
|
7 |
+
|
8 |
+
if st.button("Generate Image"):
|
9 |
+
with st.spinner("Generating image..."):
|
10 |
+
image = pipe(prompt).images[0]
|
11 |
+
st.image(image, caption="Generated Image", use_column_width=True)
|