Hugging Face
Search models, datasets, users...
Ctrl K
Models
Datasets
Spaces
Buckets
Docs
Enterprise
Pricing
More
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
BhavaishKumar112
/
RecipeGenerator
Like
0
Sleeping
More actions
App
Files
Files
Community
More actions
Fetching metadata from the HF Docker repository...
BhavaishKumar112
commited on
Dec 8, 2024
Commit
9fa0978
·
verified
·
1 Parent(s):
7a9794e
Delete get_device_id.py
Browse files
1 file changed
-7
split
unified
Collapse all
1
2
3
4
5
6
7
import
torch
def
get_device_id
():
if
torch
.
cuda
.
is_available
():
return
0
return
-
1
get_device_id.py
Deleted
-7