Spaces:
Sleeping
Sleeping
Commit
•
b66cade
1
Parent(s):
735a271
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ css = '''
|
|
71 |
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
72 |
#run_button{position:absolute;margin-top: 36px;right: 0;margin-right: 1.5em;border-bottom-left-radius: 0px;
|
73 |
border-top-left-radius: 0px;}
|
74 |
-
.random_column{align-self: center; align-items: center;gap: 0.5em}
|
75 |
#share-btn-container{padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; max-width: 13rem; margin-left: auto;margin-top: 0.35em;}
|
76 |
div#share-btn-container > div {flex-direction: row;background: black;align-items: center}
|
77 |
#share-btn-container:hover {background-color: #060606}
|
@@ -94,8 +94,8 @@ def merge_and_run(prompt, negative_prompt, shuffled_items, lora_1_scale=0.5, lor
|
|
94 |
repo_id_1 = shuffled_items[0]['repo']
|
95 |
repo_id_2 = shuffled_items[1]['repo']
|
96 |
print("Loading state dicts...")
|
97 |
-
state_dict_1 = copy.deepcopy(state_dicts[repo_id_1]["state_dict"]
|
98 |
-
state_dict_2 = copy.deepcopy(state_dicts[repo_id_2]["state_dict"]
|
99 |
print("Loaded state dicts.")
|
100 |
pipe = copy.deepcopy(original_pipe)
|
101 |
pipe.to("cuda")
|
|
|
71 |
#prompt input{width: calc(100% - 160px);border-top-right-radius: 0px;border-bottom-right-radius: 0px;}
|
72 |
#run_button{position:absolute;margin-top: 36px;right: 0;margin-right: 1.5em;border-bottom-left-radius: 0px;
|
73 |
border-top-left-radius: 0px;}
|
74 |
+
.random_column{align-self: center; align-items: center;gap: 0.5em !important}
|
75 |
#share-btn-container{padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; max-width: 13rem; margin-left: auto;margin-top: 0.35em;}
|
76 |
div#share-btn-container > div {flex-direction: row;background: black;align-items: center}
|
77 |
#share-btn-container:hover {background-color: #060606}
|
|
|
94 |
repo_id_1 = shuffled_items[0]['repo']
|
95 |
repo_id_2 = shuffled_items[1]['repo']
|
96 |
print("Loading state dicts...")
|
97 |
+
state_dict_1 = copy.deepcopy(state_dicts[repo_id_1]["state_dict"])
|
98 |
+
state_dict_2 = copy.deepcopy(state_dicts[repo_id_2]["state_dict"])
|
99 |
print("Loaded state dicts.")
|
100 |
pipe = copy.deepcopy(original_pipe)
|
101 |
pipe.to("cuda")
|