Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,6 @@ from diffusers import DiffusionPipeline
|
|
6 |
import random
|
7 |
from transformers import pipeline
|
8 |
|
9 |
-
|
10 |
torch.backends.cudnn.deterministic = True
|
11 |
torch.backends.cudnn.benchmark = False
|
12 |
torch.backends.cuda.matmul.allow_tf32 = True
|
@@ -23,8 +22,6 @@ pipe.load_lora_weights(lora_repo)
|
|
23 |
|
24 |
pipe.to("cuda")
|
25 |
|
26 |
-
|
27 |
-
|
28 |
MAX_SEED = 2**32-1
|
29 |
|
30 |
@spaces.GPU()
|
@@ -76,6 +73,8 @@ def load_example():
|
|
76 |
example_image = Image.open(example_image_path)
|
77 |
return example_prompt, example_cfg_scale, example_steps, True, example_seed, example_width, example_height, example_lora_scale, example_image
|
78 |
|
|
|
|
|
79 |
custom_css = """
|
80 |
/* ๊ธฐ๋ณธ ์คํ์ผ */
|
81 |
body {
|
@@ -211,7 +210,7 @@ body {
|
|
211 |
}
|
212 |
"""
|
213 |
|
214 |
-
# JavaScript
|
215 |
snow_js = """
|
216 |
function createSnowflake() {
|
217 |
const snowflake = document.createElement('div');
|
@@ -256,7 +255,6 @@ function stopAllAudio() {
|
|
256 |
currentlyPlaying = null;
|
257 |
}
|
258 |
"""
|
259 |
-
[์ด์ ์ฝ๋๋ ๋์ผ...]
|
260 |
|
261 |
# Gradio ์ธํฐํ์ด์ค ๊ตฌ์ฑ
|
262 |
app = gr.Blocks(css=custom_css)
|
|
|
6 |
import random
|
7 |
from transformers import pipeline
|
8 |
|
|
|
9 |
torch.backends.cudnn.deterministic = True
|
10 |
torch.backends.cudnn.benchmark = False
|
11 |
torch.backends.cuda.matmul.allow_tf32 = True
|
|
|
22 |
|
23 |
pipe.to("cuda")
|
24 |
|
|
|
|
|
25 |
MAX_SEED = 2**32-1
|
26 |
|
27 |
@spaces.GPU()
|
|
|
73 |
example_image = Image.open(example_image_path)
|
74 |
return example_prompt, example_cfg_scale, example_steps, True, example_seed, example_width, example_height, example_lora_scale, example_image
|
75 |
|
76 |
+
|
77 |
+
# CSS ์ ์
|
78 |
custom_css = """
|
79 |
/* ๊ธฐ๋ณธ ์คํ์ผ */
|
80 |
body {
|
|
|
210 |
}
|
211 |
"""
|
212 |
|
213 |
+
# JavaScript ์ฝ๋
|
214 |
snow_js = """
|
215 |
function createSnowflake() {
|
216 |
const snowflake = document.createElement('div');
|
|
|
255 |
currentlyPlaying = null;
|
256 |
}
|
257 |
"""
|
|
|
258 |
|
259 |
# Gradio ์ธํฐํ์ด์ค ๊ตฌ์ฑ
|
260 |
app = gr.Blocks(css=custom_css)
|