Spaces:
Sleeping
Sleeping
BlockDetail
commited on
Commit
•
630061b
1
Parent(s):
259a646
fix
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ import spaces
|
|
9 |
negative_prompt = ""
|
10 |
device = torch.device('cuda')
|
11 |
|
12 |
-
global pipe
|
13 |
controlnet = ControlNetModel.from_pretrained("BlockDetail/PartialSketchControlNet", torch_dtype=torch.float16).to(device)
|
14 |
pipe = CustomStableDiffusionControlNetPipeline.from_pretrained(
|
15 |
"runwayml/stable-diffusion-v1-5",
|
@@ -163,5 +162,4 @@ with gr.Blocks() as demo:
|
|
163 |
# stroke_type[0].change(change_color, [stroke_type[0]], canvas)
|
164 |
num_samples[0].change(change_num_samples, [num_samples[0]], None)
|
165 |
|
166 |
-
load()
|
167 |
demo.launch(share = True, debug = True)
|
|
|
9 |
negative_prompt = ""
|
10 |
device = torch.device('cuda')
|
11 |
|
|
|
12 |
controlnet = ControlNetModel.from_pretrained("BlockDetail/PartialSketchControlNet", torch_dtype=torch.float16).to(device)
|
13 |
pipe = CustomStableDiffusionControlNetPipeline.from_pretrained(
|
14 |
"runwayml/stable-diffusion-v1-5",
|
|
|
162 |
# stroke_type[0].change(change_color, [stroke_type[0]], canvas)
|
163 |
num_samples[0].change(change_num_samples, [num_samples[0]], None)
|
164 |
|
|
|
165 |
demo.launch(share = True, debug = True)
|