Spaces:
Running
Running
oceansweep
commited on
Commit
•
41ae428
1
Parent(s):
d382140
Update app.py
Browse files
app.py
CHANGED
@@ -1391,7 +1391,13 @@ if __name__ == "__main__":
|
|
1391 |
parser.add_argument('-demo', '--demo_mode', action='store_true', help='Enable demo mode')
|
1392 |
#parser.add_argument('--log_file', action=str, help='Where to save logfile (non-default)')
|
1393 |
args = parser.parse_args()
|
|
|
|
|
|
|
|
|
|
|
1394 |
|
|
|
1395 |
# Since this is running in HF....
|
1396 |
args.user_interface = True
|
1397 |
if args.user_interface:
|
|
|
1391 |
parser.add_argument('-demo', '--demo_mode', action='store_true', help='Enable demo mode')
|
1392 |
#parser.add_argument('--log_file', action=str, help='Where to save logfile (non-default)')
|
1393 |
args = parser.parse_args()
|
1394 |
+
|
1395 |
+
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
1396 |
+
# True
|
1397 |
+
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
1398 |
+
# Tesla T4
|
1399 |
|
1400 |
+
|
1401 |
# Since this is running in HF....
|
1402 |
args.user_interface = True
|
1403 |
if args.user_interface:
|