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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -4,8 +4,8 @@ import os
4
  import logging
5
  import requests
6
  from huggingface_hub import login, whoami, HfFolder, HfApi, SpaceHardware
7
- import torch
8
  import time
 
9
 
10
  webhook_server = os.getenv('webhook_server')
11
  API_TOKEN = os.getenv('ZeroGPU')
@@ -30,12 +30,12 @@ client_image = Client("measmonysuon/DALLE-4K")
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
38
- print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
39
  # Tesla
40
 
41
  # Define resolutions and default style
 
4
  import logging
5
  import requests
6
  from huggingface_hub import login, whoami, HfFolder, HfApi, SpaceHardware
 
7
  import time
8
+ import torch
9
 
10
  webhook_server = os.getenv('webhook_server')
11
  API_TOKEN = os.getenv('ZeroGPU')
 
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
38
+ #print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
39
  # Tesla
40
 
41
  # Define resolutions and default style