Commit
·
b06bbf6
1
Parent(s):
4d88552
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ from diffusers import DiffusionPipeline
|
|
16 |
|
17 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
18 |
|
19 |
-
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-inpainting",
|
20 |
|
21 |
def read_content(file_path: str) -> str:
|
22 |
"""read the content of target file
|
|
|
16 |
|
17 |
from share_btn import community_icon_html, loading_icon_html, share_js
|
18 |
|
19 |
+
pipe = DiffusionPipeline.from_pretrained("runwayml/stable-diffusion-inpainting", torch_dtype=torch.float16).to("cuda")
|
20 |
|
21 |
def read_content(file_path: str) -> str:
|
22 |
"""read the content of target file
|