Spaces:
Runtime error
Runtime error
Device error
Browse files
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 |
-
|
| 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 |
|