Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from PIL import Image
|
3 |
|
@@ -35,7 +46,7 @@ else:
|
|
35 |
device = "cpu"
|
36 |
|
37 |
pipeline = AutoPipelineForInpainting.from_pretrained(
|
38 |
-
"
|
39 |
)
|
40 |
|
41 |
pipeline.to(device)
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
os.system(
|
4 |
+
"pip install uvicorn --upgrade;\
|
5 |
+
pip install gradio==3.47.1;\
|
6 |
+
pip install transformers;\
|
7 |
+
pip install diffusers;\
|
8 |
+
pip install accelerate;\
|
9 |
+
pip install torch"
|
10 |
+
)
|
11 |
+
|
12 |
import gradio as gr
|
13 |
from PIL import Image
|
14 |
|
|
|
46 |
device = "cpu"
|
47 |
|
48 |
pipeline = AutoPipelineForInpainting.from_pretrained(
|
49 |
+
"Lykon/absolute-reality-1.6525-inpainting", torch_dtype=torch_dtype
|
50 |
)
|
51 |
|
52 |
pipeline.to(device)
|