ailm commited on
Commit
e8773e4
·
verified ·
1 Parent(s): 2f4de84

Device error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ from better_profanity import profanity # Import the profanity-check library
9
  import gradio as gr
10
 
11
 
12
- device = 'cuda' if torch.cuda.is_available() else 'cpu'
13
 
14
  print(f"Using device: {Device}")
15
 
 
9
  import gradio as gr
10
 
11
 
12
+ Device = 'cuda' if torch.cuda.is_available() else 'cpu'
13
 
14
  print(f"Using device: {Device}")
15