Spaces:
Runtime error
Runtime error
add gpu select
Browse files
app.py
CHANGED
@@ -11,7 +11,8 @@ from src.pipeline import FashionPipeline, PipelineOutput
|
|
11 |
|
12 |
|
13 |
config = PipelineConfig()
|
14 |
-
|
|
|
15 |
|
16 |
|
17 |
def process(
|
|
|
11 |
|
12 |
|
13 |
config = PipelineConfig()
|
14 |
+
device = torch.device('cuda') if torch.cuda.is_available() else 'cpu'
|
15 |
+
fashion_pipeline = FashionPipeline(config, device=device)
|
16 |
|
17 |
|
18 |
def process(
|