refac
This commit is contained in:
@@ -1585,7 +1585,7 @@ async def download_model(
|
||||
file_name = parse_huggingface_url(form_data.url)
|
||||
|
||||
if file_name:
|
||||
file_path = f'{UPLOAD_DIR}/{file_name}'
|
||||
file_path = os.path.join(UPLOAD_DIR, file_name)
|
||||
|
||||
return StreamingResponse(
|
||||
download_file_stream(url, form_data.url, file_path, file_name),
|
||||
|
||||
Reference in New Issue
Block a user