Spaces:
Sleeping
Sleeping
Commit
·
ccd9bce
1
Parent(s):
0580dd5
Update app.py
Browse files
app.py
CHANGED
@@ -38,9 +38,7 @@ with c1:
|
|
38 |
with c2:
|
39 |
bu_2 = st.text_input("Steps",'12')
|
40 |
with c3:
|
41 |
-
bu_3 = st.text_input("
|
42 |
-
with c4:
|
43 |
-
bu_4 = st.text_input("Number of Images",'1')
|
44 |
with c5:
|
45 |
sl_1 = st.slider("Width",128,1024,512,8)
|
46 |
with c6:
|
@@ -58,7 +56,7 @@ if create:
|
|
58 |
if int(bu_3) == 1 :
|
59 |
IMG = model(prom, width=int(sl_1), height=int(sl_2),
|
60 |
num_inference_steps=int(bu_2),
|
61 |
-
guidance_scale = bu_3,
|
62 |
generator=generator).images[0]
|
63 |
st.image(IMG)
|
64 |
|
@@ -67,7 +65,7 @@ if create:
|
|
67 |
|
68 |
IMGS = model(PROMS, width=int(sl_1), height=int(sl_2),
|
69 |
num_inference_steps=int(bu_2),
|
70 |
-
guidance_scale = bu_3,
|
71 |
generator=generator).images
|
72 |
|
73 |
st.image(IMGS)
|
|
|
38 |
with c2:
|
39 |
bu_2 = st.text_input("Steps",'12')
|
40 |
with c3:
|
41 |
+
bu_3 = st.text_input("Number of Images",'1')
|
|
|
|
|
42 |
with c5:
|
43 |
sl_1 = st.slider("Width",128,1024,512,8)
|
44 |
with c6:
|
|
|
56 |
if int(bu_3) == 1 :
|
57 |
IMG = model(prom, width=int(sl_1), height=int(sl_2),
|
58 |
num_inference_steps=int(bu_2),
|
59 |
+
# guidance_scale = bu_3,
|
60 |
generator=generator).images[0]
|
61 |
st.image(IMG)
|
62 |
|
|
|
65 |
|
66 |
IMGS = model(PROMS, width=int(sl_1), height=int(sl_2),
|
67 |
num_inference_steps=int(bu_2),
|
68 |
+
# guidance_scale = bu_3,
|
69 |
generator=generator).images
|
70 |
|
71 |
st.image(IMGS)
|