Spaces:
Runtime error
Runtime error
Update app.py
#3
by
jssck
- opened
app.py
CHANGED
|
@@ -164,3 +164,9 @@ with gr.Blocks() as demo:
|
|
| 164 |
|
| 165 |
demo.queue(max_size=10)
|
| 166 |
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
|
| 165 |
demo.queue(max_size=10)
|
| 166 |
demo.launch()
|
| 167 |
+
import torch
|
| 168 |
+
|
| 169 |
+
if torch.cuda.is_available():
|
| 170 |
+
print(f"GPU disponible : {torch.cuda.get_device_name(0)}")
|
| 171 |
+
else:
|
| 172 |
+
print("Aucun GPU disponible")
|