silentchen commited on
Commit
ab8308a
1 Parent(s): d5eda1c

update space

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -257,7 +257,7 @@ def main():
257
  elif 'cyber' in instruction:
258
  e_type = 'cyber'
259
 
260
- model = models[e_type]
261
  # model = load_model('text300M', device=device)
262
  # with torch.no_grad():
263
  # new_proj = nn.Linear(1024 * 2, 1024, device=device, dtype=model.wrapped.input_proj.weight.dtype)
 
257
  elif 'cyber' in instruction:
258
  e_type = 'cyber'
259
 
260
+ model = models[e_type].to(device)
261
  # model = load_model('text300M', device=device)
262
  # with torch.no_grad():
263
  # new_proj = nn.Linear(1024 * 2, 1024, device=device, dtype=model.wrapped.input_proj.weight.dtype)