Docty commited on
Commit
97d66c9
·
verified ·
1 Parent(s): e593f13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1,4 +1,11 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
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)