yucornetto commited on
Commit
e17fc09
1 Parent(s): 8b5d788

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -38,6 +38,7 @@ titok_tokenizer, titok_generator = load_model()
38
  def demo_infer(
39
  guidance_scale, randomize_temperature, num_sample_steps,
40
  class_label, seed):
 
41
  # device = "cuda" if torch.cuda.is_available() else "cpu"
42
  tokenizer = titok_tokenizer #.to(device)
43
  generator = titok_generator #.to(device)
 
38
  def demo_infer(
39
  guidance_scale, randomize_temperature, num_sample_steps,
40
  class_label, seed):
41
+ device = "cuda"
42
  # device = "cuda" if torch.cuda.is_available() else "cpu"
43
  tokenizer = titok_tokenizer #.to(device)
44
  generator = titok_generator #.to(device)