Spaces:
Runtime error
Runtime error
Update sd/zerogpu_controller.py
Browse files- sd/zerogpu_controller.py +2 -1
sd/zerogpu_controller.py
CHANGED
|
@@ -2,6 +2,7 @@
|
|
| 2 |
import spaces
|
| 3 |
|
| 4 |
from sd.prompt_helper import helper
|
|
|
|
| 5 |
|
| 6 |
from sd.utils.utils import *
|
| 7 |
from utils.utils import sketch_process, prompt_preprocess
|
|
@@ -82,6 +83,6 @@ def get_second_result(img, prompt, negative_prompt,
|
|
| 82 |
|
| 83 |
|
| 84 |
def get_help_w_prompt(img):
|
| 85 |
-
return helper.get_help(img)
|
| 86 |
|
| 87 |
#ui(get_first_result, get_second_result) #controller)
|
|
|
|
| 2 |
import spaces
|
| 3 |
|
| 4 |
from sd.prompt_helper import helper
|
| 5 |
+
from PIL import Image
|
| 6 |
|
| 7 |
from sd.utils.utils import *
|
| 8 |
from utils.utils import sketch_process, prompt_preprocess
|
|
|
|
| 83 |
|
| 84 |
|
| 85 |
def get_help_w_prompt(img):
|
| 86 |
+
return helper.get_help(Image.fromarray(img["composite"]))
|
| 87 |
|
| 88 |
#ui(get_first_result, get_second_result) #controller)
|