Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,4 +3,15 @@ from transformers import pipeline
|
|
3 |
|
4 |
st.header('IMA GEN', divider='blue')
|
5 |
st.text('Generating images from Text')
|
6 |
-
st.text_input('type a prompt')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
st.header('IMA GEN', divider='blue')
|
5 |
st.text('Generating images from Text')
|
6 |
+
st.text_input('type a prompt')
|
7 |
+
with st.form("settings"):
|
8 |
+
st.write("Generation settings")
|
9 |
+
slider_val = st.slider("steps")
|
10 |
+
checkbox_val = st.checkbox("use uplscale")
|
11 |
+
|
12 |
+
# Every form must have a submit button.
|
13 |
+
submitted = st.form_submit_button("Generate")
|
14 |
+
if submitted:
|
15 |
+
st.write("steps", slider_val, "uplscale", checkbox_val)
|
16 |
+
|
17 |
+
st.write("Generation settings")
|