Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,11 @@ examples = [[os.path.join(os.path.dirname(__file__), "lion.jpg")], [os.path.join
|
|
14 |
app = gr.Interface.from_pipeline(pipe, examples=examples, title='εΎηθ―ε«')
|
15 |
|
16 |
|
17 |
-
|
|
|
|
|
|
|
|
|
18 |
examples = [["θ½ζ₯"], ["ζ²ζ»©"]]
|
19 |
app_v1 = gr.Interface.from_pipeline(pipe, examples=examples, title='εΎηηζ')
|
20 |
|
|
|
14 |
app = gr.Interface.from_pipeline(pipe, examples=examples, title='εΎηθ―ε«')
|
15 |
|
16 |
|
17 |
+
from diffusers import StableDiffusionPipeline
|
18 |
+
import torch
|
19 |
+
|
20 |
+
model_id = "dreamlike-art/dreamlike-photoreal-2.0"
|
21 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
22 |
examples = [["θ½ζ₯"], ["ζ²ζ»©"]]
|
23 |
app_v1 = gr.Interface.from_pipeline(pipe, examples=examples, title='εΎηηζ')
|
24 |
|