Spaces:
Running
Running
Commit
·
21fc719
1
Parent(s):
45faff1
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,6 +64,7 @@ from share_btn import community_icon_html, loading_icon_html, share_js
|
|
| 64 |
HF_TOKEN_SD = os.environ.get('HF_TOKEN_SD')
|
| 65 |
|
| 66 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 67 |
|
| 68 |
def get_image_ext(img_bytes):
|
| 69 |
w = imghdr.what("", img_bytes)
|
|
|
|
| 64 |
HF_TOKEN_SD = os.environ.get('HF_TOKEN_SD')
|
| 65 |
|
| 66 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 67 |
+
print(f'device = {device}')
|
| 68 |
|
| 69 |
def get_image_ext(img_bytes):
|
| 70 |
w = imghdr.what("", img_bytes)
|