CarolineM5 commited on
Commit
e40eff1
·
verified ·
1 Parent(s): 73160c6

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: