File size: 512 Bytes
ecede84
99bb52c
59ae360
03489bf
db788c5
2c9d998
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import streamlit as st
from transformers import pipeline

st.header('IMA GEN', divider='blue')
st.text('Generating images from Text')
st.text_input('type a prompt')
with st.form("settings"):
   st.write("Generation settings")
   slider_val = st.slider("steps")
   checkbox_val = st.checkbox("use uplscale")

   # Every form must have a submit button.
   submitted = st.form_submit_button("Generate")
   if submitted:
       st.write("steps", slider_val, "uplscale", checkbox_val)

st.write("Generation settings")