alfredplpl commited on
Commit
02422f5
1 Parent(s): 5839c65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def infer(seed, randomize_seed, width, height, guidance_scale, num_inference_ste
48
  inputs = tokenizer(prompt, return_tensors="pt").input_ids
49
  with torch.no_grad():
50
  outputs = model.generate(
51
- inputs,
52
  do_sample=True,
53
  temperature=1.0,
54
  top_p=1.0,
 
48
  inputs = tokenizer(prompt, return_tensors="pt").input_ids
49
  with torch.no_grad():
50
  outputs = model.generate(
51
+ inputs.to(device),
52
  do_sample=True,
53
  temperature=1.0,
54
  top_p=1.0,