Spaces:
Runtime error
Runtime error
no more cuda
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def encode_color(color):
|
|
29 |
return model.encode_image( resizer(rgb) )
|
30 |
|
31 |
def encode_text(text):
|
32 |
-
tokenized_text = clip.tokenize(text).
|
33 |
return model.encode_text(tokenized_text)
|
34 |
|
35 |
def lerp(x, y, steps=11):
|
|
|
29 |
return model.encode_image( resizer(rgb) )
|
30 |
|
31 |
def encode_text(text):
|
32 |
+
tokenized_text = clip.tokenize(text).to(DEVICE)
|
33 |
return model.encode_text(tokenized_text)
|
34 |
|
35 |
def lerp(x, y, steps=11):
|