nightfury commited on
Commit
1d197f7
1 Parent(s): 594b001

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"