Spaces:
Running
on
Zero
Running
on
Zero
yucornetto
commited on
Commit
•
e17fc09
1
Parent(s):
8b5d788
Update app.py
Browse files
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)
|