Spaces:
Runtime error
Runtime error
trying to get rid off tensors not on same device
Browse files
app.py
CHANGED
@@ -35,6 +35,7 @@ import gradio as gr
|
|
35 |
from clip_interrogator import Config, Interrogator
|
36 |
|
37 |
config = Config()
|
|
|
38 |
config.blip_offload = True
|
39 |
config.chunk_size = 2048
|
40 |
config.flavor_intermediate_count = 512
|
|
|
35 |
from clip_interrogator import Config, Interrogator
|
36 |
|
37 |
config = Config()
|
38 |
+
config.device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
39 |
config.blip_offload = True
|
40 |
config.chunk_size = 2048
|
41 |
config.flavor_intermediate_count = 512
|