Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
|
@@ -12,9 +12,9 @@ from inference import inference
|
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
-
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 16 |
-
|
| 17 |
|
|
|
|
| 18 |
|
| 19 |
# --- 3) FONCTION GRADIO D’INTERFACE ---
|
| 20 |
def gradio_generate(fibers_map: Image.Image, rings_map: Image.Image) -> Image.Image:
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
+
# device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
|
| 16 |
|
| 17 |
+
device = torch.device('cpu')
|
| 18 |
|
| 19 |
# --- 3) FONCTION GRADIO D’INTERFACE ---
|
| 20 |
def gradio_generate(fibers_map: Image.Image, rings_map: Image.Image) -> Image.Image:
|