Spaces:
Running
on
Zero
Running
on
Zero
tori29umai
commited on
Commit
•
7771f33
1
Parent(s):
a6d9def
app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,9 @@ class Img2Img:
|
|
97 |
inputs=[self.input_image_path, self.prompt, self.negative_prompt, self.controlnet_scale],
|
98 |
outputs=self.output_image
|
99 |
)
|
100 |
-
|
|
|
|
|
101 |
|
102 |
@spaces.GPU
|
103 |
def predict(self, input_image_path, prompt, negative_prompt, controlnet_scale):
|
@@ -131,7 +133,3 @@ class Img2Img:
|
|
131 |
print(f"Time taken: {time.time() - last_time}")
|
132 |
output_image = output_image.resize(base_size, Image.LANCZOS)
|
133 |
return output_image
|
134 |
-
|
135 |
-
img2img = Img2Img()
|
136 |
-
img2img.demo.queue()
|
137 |
-
img2img.demo.launch(share=True)
|
|
|
97 |
inputs=[self.input_image_path, self.prompt, self.negative_prompt, self.controlnet_scale],
|
98 |
outputs=self.output_image
|
99 |
)
|
100 |
+
|
101 |
+
self.demo.queue()
|
102 |
+
self.demo.launch(share=True)
|
103 |
|
104 |
@spaces.GPU
|
105 |
def predict(self, input_image_path, prompt, negative_prompt, controlnet_scale):
|
|
|
133 |
print(f"Time taken: {time.time() - last_time}")
|
134 |
output_image = output_image.resize(base_size, Image.LANCZOS)
|
135 |
return output_image
|
|
|
|
|
|
|
|