Spaces:
Sleeping
Sleeping
Commit
·
f4489df
1
Parent(s):
9c2f138
Update app.py
Browse files
app.py
CHANGED
@@ -16,13 +16,15 @@ def create_model(loc = "stabilityai/stable-diffusion-2-1-base", mch = 'cpu'):
|
|
16 |
# - `FIRST RUN OF THE CODE`
|
17 |
# - `CHANGING MODEL`""")
|
18 |
|
19 |
-
the_type = st.selectbox("Model",("stabilityai/stable-diffusion-2-1-base",
|
20 |
-
|
21 |
|
22 |
-
create = st.button("Create The Model")
|
23 |
|
24 |
-
if create:
|
25 |
-
|
|
|
|
|
26 |
|
27 |
|
28 |
prom = st.text_input("Prompt",'')
|
|
|
16 |
# - `FIRST RUN OF THE CODE`
|
17 |
# - `CHANGING MODEL`""")
|
18 |
|
19 |
+
# the_type = st.selectbox("Model",("stabilityai/stable-diffusion-2-1-base",
|
20 |
+
# "CompVis/stable-diffusion-v1-4"))
|
21 |
|
22 |
+
# create = st.button("Create The Model")
|
23 |
|
24 |
+
# if create:
|
25 |
+
# st.session_state.t2m_mod = create_model(loc=the_type)
|
26 |
+
|
27 |
+
st.session_state.t2m_mod = create_model(loc=the_type)
|
28 |
|
29 |
|
30 |
prom = st.text_input("Prompt",'')
|