dimentox commited on
Commit
acc3763
1 Parent(s): d8de9b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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 StableDiffusionInstructPix2PixPipeline
10
 
11
 
12
  help_text = """
@@ -18,11 +18,11 @@ example_instructions = [
18
  "A river"
19
  ]
20
 
21
- model_id = "models/dimentox/heightmapstyle"
22
 
23
 
24
  def main():
25
- pipe = StableDiffusionInstructPix2PixPipeline.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(
 
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(