Spaces:
Runtime error
Runtime error
nroggendorff
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
|
4 |
-
d = "cuda" if torch.cuda.is_available else False
|
5 |
|
6 |
if d:
|
7 |
import spaces
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
|
4 |
+
d = "cuda" if torch.cuda.is_available() else False
|
5 |
|
6 |
if d:
|
7 |
import spaces
|