Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def predict(radio, dict, word_mask, prompt=""):
|
|
122 |
|
123 |
#model = model.to(torch.device(device))
|
124 |
img = img.to(torch.device(device))
|
125 |
-
prompt = prompt.to(torch.device(device))
|
126 |
#---------
|
127 |
|
128 |
init_image = dict['image'].convert('RGB').resize((imgRes, imgRes))
|
@@ -153,7 +153,7 @@ def predict(radio, dict, word_mask, prompt=""):
|
|
153 |
|
154 |
#model = model.to(torch.device(device))
|
155 |
img = img.to(torch.device(device))
|
156 |
-
prompt = prompt.to(torch.device(device))
|
157 |
|
158 |
init_image = dict['image'].convert('RGB').resize((imgRes, imgRes))
|
159 |
filename = f"{uuid.uuid4()}.png"
|
|
|
122 |
|
123 |
#model = model.to(torch.device(device))
|
124 |
img = img.to(torch.device(device))
|
125 |
+
#prompt = prompt.to(torch.device(device))
|
126 |
#---------
|
127 |
|
128 |
init_image = dict['image'].convert('RGB').resize((imgRes, imgRes))
|
|
|
153 |
|
154 |
#model = model.to(torch.device(device))
|
155 |
img = img.to(torch.device(device))
|
156 |
+
#prompt = prompt.to(torch.device(device))
|
157 |
|
158 |
init_image = dict['image'].convert('RGB').resize((imgRes, imgRes))
|
159 |
filename = f"{uuid.uuid4()}.png"
|