Spaces:
Sleeping
Sleeping
Commit
·
3084e8d
1
Parent(s):
9286c34
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,16 @@ 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,1])
|
|
|
34 |
c4,c5 = st.columns(2)
|
35 |
|
36 |
with c1:
|
@@ -56,7 +65,7 @@ if create:
|
|
56 |
generator = st.session_state.generator
|
57 |
|
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]
|
@@ -65,7 +74,7 @@ if create:
|
|
65 |
else :
|
66 |
PROMS = [prom]*int(bu_3)
|
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
|
|
|
30 |
|
31 |
prom = st.text_input("Prompt",'')
|
32 |
|
33 |
+
neg_prom = st.text_input("Negative Prompt",'')
|
34 |
+
|
35 |
+
style = st.selectbox("Image style",("Cyberpunk",
|
36 |
+
"Picasso",
|
37 |
+
"Real-world specific",
|
38 |
+
"Digital Art",
|
39 |
+
"Aesthetics"))
|
40 |
+
|
41 |
c1,c2,c3,c6 = st.columns([1,1,1,1])
|
42 |
+
c8 = st.columns([1,1,1,1])
|
43 |
c4,c5 = st.columns(2)
|
44 |
|
45 |
with c1:
|
|
|
65 |
generator = st.session_state.generator
|
66 |
|
67 |
if int(bu_3) == 1 :
|
68 |
+
IMG = model(prom, negative_prompt = neg_prom, 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[0]
|
|
|
74 |
else :
|
75 |
PROMS = [prom]*int(bu_3)
|
76 |
|
77 |
+
IMGS = model(PROMS, negative_prompt = neg_prom, width=int(sl_1), height=int(sl_2),
|
78 |
num_inference_steps=int(bu_2),
|
79 |
guidance_scale = float(bu_6),
|
80 |
generator=generator).images
|