Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import random
|
|
| 6 |
import gradio as gr
|
| 7 |
import torch
|
| 8 |
from PIL import Image, ImageOps
|
| 9 |
-
from diffusers import
|
| 10 |
|
| 11 |
|
| 12 |
help_text = """
|
|
@@ -18,11 +18,11 @@ example_instructions = [
|
|
| 18 |
"A river"
|
| 19 |
]
|
| 20 |
|
| 21 |
-
model_id = "
|
| 22 |
|
| 23 |
|
| 24 |
def main():
|
| 25 |
-
pipe =
|
| 26 |
#example_image = Image.open("imgs/example.jpg").convert("RGB")
|
| 27 |
|
| 28 |
def load_example(
|
|
|
|
| 6 |
import gradio as gr
|
| 7 |
import torch
|
| 8 |
from PIL import Image, ImageOps
|
| 9 |
+
from diffusers import StableDiffusionPipeline
|
| 10 |
|
| 11 |
|
| 12 |
help_text = """
|
|
|
|
| 18 |
"A river"
|
| 19 |
]
|
| 20 |
|
| 21 |
+
model_id = "dimentox/heightmapstyle"
|
| 22 |
|
| 23 |
|
| 24 |
def main():
|
| 25 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16, safety_checker=None).to("cuda")
|
| 26 |
#example_image = Image.open("imgs/example.jpg").convert("RGB")
|
| 27 |
|
| 28 |
def load_example(
|