Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
00e9fdd
1
Parent(s):
786f873
Update app.py
Browse files
app.py
CHANGED
@@ -83,7 +83,7 @@ div#share-btn-container > div {flex-direction: row;background: black;align-items
|
|
83 |
#post_gen_info{margin-top: .5em}
|
84 |
#thumbs_up_clicked{background:green}
|
85 |
#thumbs_down_clicked{background:red}
|
86 |
-
.
|
87 |
'''
|
88 |
|
89 |
original_pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16)
|
@@ -121,7 +121,7 @@ def get_description(item):
|
|
121 |
return f"Trigger: `{trigger_word}`" if trigger_word else "No trigger, applied automatically", trigger_word
|
122 |
|
123 |
|
124 |
-
def truncate_string(s, max_length=
|
125 |
return s[:max_length - 3] + "..." if len(s) > max_length else s
|
126 |
|
127 |
def shuffle_images():
|
|
|
83 |
#post_gen_info{margin-top: .5em}
|
84 |
#thumbs_up_clicked{background:green}
|
85 |
#thumbs_down_clicked{background:red}
|
86 |
+
.title_lora a{color: var(--body-text-color) !important}
|
87 |
'''
|
88 |
|
89 |
original_pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16)
|
|
|
121 |
return f"Trigger: `{trigger_word}`" if trigger_word else "No trigger, applied automatically", trigger_word
|
122 |
|
123 |
|
124 |
+
def truncate_string(s, max_length=29):
|
125 |
return s[:max_length - 3] + "..." if len(s) > max_length else s
|
126 |
|
127 |
def shuffle_images():
|