Spaces:
Sleeping
Sleeping
Commit
·
c740754
1
Parent(s):
67148f6
Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,8 @@ st.session_state.t2m_mod = create_model(loc=the_type)
|
|
30 |
|
31 |
prom = st.text_input("Prompt",'')
|
32 |
|
33 |
-
c1,c2,c3 = st.columns([1,1,
|
34 |
c4,c5 = st.columns(2)
|
35 |
-
c6 = st.columns(1)
|
36 |
|
37 |
with c1:
|
38 |
bu_1 = st.text_input("Seed",'666')
|
@@ -40,14 +39,13 @@ with c2:
|
|
40 |
bu_2 = st.text_input("Steps",'12')
|
41 |
with c3:
|
42 |
bu_3 = st.text_input("Number of Images",'1')
|
|
|
|
|
43 |
with c4:
|
44 |
sl_1 = st.slider("Width",128,1024,512,8)
|
45 |
with c5:
|
46 |
sl_2 = st.slider("hight",128,1024,512,8)
|
47 |
|
48 |
-
with c6:
|
49 |
-
bu_6 = st.text_input("Guidance Scale",'7.5')
|
50 |
-
|
51 |
st.session_state.generator = torch.Generator("cpu").manual_seed(int(bu_1))
|
52 |
|
53 |
create = st.button("Imagine")
|
|
|
30 |
|
31 |
prom = st.text_input("Prompt",'')
|
32 |
|
33 |
+
c1,c2,c3,c6 = st.columns([1,1,1,2])
|
34 |
c4,c5 = st.columns(2)
|
|
|
35 |
|
36 |
with c1:
|
37 |
bu_1 = st.text_input("Seed",'666')
|
|
|
39 |
bu_2 = st.text_input("Steps",'12')
|
40 |
with c3:
|
41 |
bu_3 = st.text_input("Number of Images",'1')
|
42 |
+
with c6:
|
43 |
+
bu_6 = st.text_input("Guidance Scale",'7.5')
|
44 |
with c4:
|
45 |
sl_1 = st.slider("Width",128,1024,512,8)
|
46 |
with c5:
|
47 |
sl_2 = st.slider("hight",128,1024,512,8)
|
48 |
|
|
|
|
|
|
|
49 |
st.session_state.generator = torch.Generator("cpu").manual_seed(int(bu_1))
|
50 |
|
51 |
create = st.button("Imagine")
|