Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -209,9 +209,9 @@ def replace_nsfw_images(results):
|
|
209 |
results.images[i] = Image.open("nsfw.png")
|
210 |
return results.images
|
211 |
|
212 |
-
css = """.finetuned-diffusion-div div{display:inline-flex;align-items:center;gap:.8rem;font-size:1.75rem}.finetuned-diffusion-div div h1{font-weight:900;margin-bottom:7px}.finetuned-diffusion-div p{margin-bottom:10px;font-size:94%}a{text-decoration:underline}.tabs{margin-top:0;margin-bottom:0}#gallery{min-height:20rem}
|
213 |
-
"""
|
214 |
-
with gr.Blocks(css=css) as demo:
|
215 |
gr.HTML(
|
216 |
f"""
|
217 |
<div class="finetuned-diffusion-div">
|
|
|
209 |
results.images[i] = Image.open("nsfw.png")
|
210 |
return results.images
|
211 |
|
212 |
+
# css = """.finetuned-diffusion-div div{display:inline-flex;align-items:center;gap:.8rem;font-size:1.75rem}.finetuned-diffusion-div div h1{font-weight:900;margin-bottom:7px}.finetuned-diffusion-div p{margin-bottom:10px;font-size:94%}a{text-decoration:underline}.tabs{margin-top:0;margin-bottom:0}#gallery{min-height:20rem}
|
213 |
+
# """
|
214 |
+
with gr.Blocks(css="style.css") as demo:
|
215 |
gr.HTML(
|
216 |
f"""
|
217 |
<div class="finetuned-diffusion-div">
|