Spaces:
Sleeping
Sleeping
Commit
·
9286c34
1
Parent(s):
c740754
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ st.session_state.t2m_mod = create_model(loc=the_type)
|
|
30 |
|
31 |
prom = st.text_input("Prompt",'')
|
32 |
|
33 |
-
c1,c2,c3,c6 = st.columns([1,1,1,
|
34 |
c4,c5 = st.columns(2)
|
35 |
|
36 |
with c1:
|
@@ -58,7 +58,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_6,
|
62 |
generator=generator).images[0]
|
63 |
st.image(IMG)
|
64 |
|
@@ -67,7 +67,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_6,
|
71 |
generator=generator).images
|
72 |
|
73 |
st.image(IMGS)
|
|
|
30 |
|
31 |
prom = st.text_input("Prompt",'')
|
32 |
|
33 |
+
c1,c2,c3,c6 = st.columns([1,1,1,1])
|
34 |
c4,c5 = st.columns(2)
|
35 |
|
36 |
with c1:
|
|
|
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 = float(bu_6),
|
62 |
generator=generator).images[0]
|
63 |
st.image(IMG)
|
64 |
|
|
|
67 |
|
68 |
IMGS = model(PROMS, width=int(sl_1), height=int(sl_2),
|
69 |
num_inference_steps=int(bu_2),
|
70 |
+
guidance_scale = float(bu_6),
|
71 |
generator=generator).images
|
72 |
|
73 |
st.image(IMGS)
|