measmonysuon commited on
Commit
58f6147
1 Parent(s): ca60ac1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -30,6 +30,8 @@ client_image = Client("measmonysuon/DALLE-4K")
30
  user_info = whoami(token=API_TOKEN)
31
  print("User Info:", user_info)
32
 
 
 
33
  print(torch.version.cuda)
34
  print(f"Is CUDA available: {torch.cuda.is_available()}")
35
  # True
 
30
  user_info = whoami(token=API_TOKEN)
31
  print("User Info:", user_info)
32
 
33
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
34
+
35
  print(torch.version.cuda)
36
  print(f"Is CUDA available: {torch.cuda.is_available()}")
37
  # True