measmonysuon commited on
Commit
cd028fb
1 Parent(s): ed6ffa1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -30,6 +30,11 @@ client_image = Client("measmonysuon/DALLE-4K")
30
  user_info = whoami(token=API_TOKEN)
31
  print("User Info:", user_info)
32
 
 
 
 
 
 
33
  # Define resolutions and default style
34
  resolutions = {
35
  "896x1152": (896, 1152),
 
30
  user_info = whoami(token=API_TOKEN)
31
  print("User Info:", user_info)
32
 
33
+ print(f"Is CUDA available: {torch.cuda.is_available()}")
34
+ # True
35
+ print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
36
+ # Tesla
37
+
38
  # Define resolutions and default style
39
  resolutions = {
40
  "896x1152": (896, 1152),