Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
arcAman07
/
sketch_nn
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
105870d
sketch_nn
/
sketch_ nn
/
utils.py
Aman Sharma
gradio demo added
8462fc9
6 months ago
raw
Copy download link
history
blame
Safe
215 Bytes
import
os
import
tempfile
def
save_uploaded_file
(
uploaded_file
):
temp_dir = tempfile.mkdtemp()
temp_path = os.path.join(temp_dir,
"uploaded_image.png"
)
uploaded_file.save(temp_path)
return
temp_path