fal 1.5.6__py3-none-any.whl → 1.5.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of fal might be problematic. Click here for more details.
- fal/_fal_version.py +2 -2
- fal/toolkit/utils/download_utils.py +4 -0
- {fal-1.5.6.dist-info → fal-1.5.7.dist-info}/METADATA +1 -1
- {fal-1.5.6.dist-info → fal-1.5.7.dist-info}/RECORD +7 -7
- {fal-1.5.6.dist-info → fal-1.5.7.dist-info}/WHEEL +0 -0
- {fal-1.5.6.dist-info → fal-1.5.7.dist-info}/entry_points.txt +0 -0
- {fal-1.5.6.dist-info → fal-1.5.7.dist-info}/top_level.txt +0 -0
fal/_fal_version.py
CHANGED
|
@@ -84,6 +84,9 @@ def _get_remote_file_properties(
|
|
|
84
84
|
url_path = parsed_url.path
|
|
85
85
|
file_name = Path(url_path).name or _hash_url(url)
|
|
86
86
|
|
|
87
|
+
# file name can still contain a forward slash if the server returns a relative path
|
|
88
|
+
file_name = Path(file_name).name
|
|
89
|
+
|
|
87
90
|
return file_name, content_length
|
|
88
91
|
|
|
89
92
|
|
|
@@ -159,6 +162,7 @@ def download_file(
|
|
|
159
162
|
try:
|
|
160
163
|
file_name = _get_remote_file_properties(url, request_headers)[0]
|
|
161
164
|
except Exception as e:
|
|
165
|
+
print(f"GOt error: {e}")
|
|
162
166
|
raise DownloadError(f"Failed to get remote file properties for {url}") from e
|
|
163
167
|
|
|
164
168
|
if "/" in file_name:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
fal/__init__.py,sha256=wXs1G0gSc7ZK60-bHe-B2m0l_sA6TrFk4BxY0tMoLe8,784
|
|
2
2
|
fal/__main__.py,sha256=4JMK66Wj4uLZTKbF-sT3LAxOsr6buig77PmOkJCRRxw,83
|
|
3
|
-
fal/_fal_version.py,sha256=
|
|
3
|
+
fal/_fal_version.py,sha256=jkie6KdeyTtWz2pwf-7E0aqaoGeRIkJAKMY8HAO1zV0,411
|
|
4
4
|
fal/_serialization.py,sha256=rD2YiSa8iuzCaZohZwN_MPEB-PpSKbWRDeaIDpTEjyY,7653
|
|
5
5
|
fal/_version.py,sha256=EBGqrknaf1WygENX-H4fBefLvHryvJBBGtVJetaB0NY,266
|
|
6
6
|
fal/api.py,sha256=oiPONakWiK8KQHaUr41yBIG64FlC9UryFNXFiITVtXk,43295
|
|
@@ -61,7 +61,7 @@ fal/toolkit/image/nsfw_filter/inference.py,sha256=BhIPF_zxRLetThQYxDDF0sdx9VRwvu
|
|
|
61
61
|
fal/toolkit/image/nsfw_filter/model.py,sha256=63mu8D15z_IosoRUagRLGHy6VbLqFmrG-yZqnu2vVm4,457
|
|
62
62
|
fal/toolkit/image/nsfw_filter/requirements.txt,sha256=3Pmrd0Ny6QAeBqUNHCgffRyfaCARAPJcfSCX5cRYpbM,37
|
|
63
63
|
fal/toolkit/utils/__init__.py,sha256=CrmM9DyCz5-SmcTzRSm5RaLgxy3kf0ZsSEN9uhnX2Xo,97
|
|
64
|
-
fal/toolkit/utils/download_utils.py,sha256=
|
|
64
|
+
fal/toolkit/utils/download_utils.py,sha256=fFrKoSJPBSurrD636ncNHhJv-cS3zReIv6ltiU3tMZU,17823
|
|
65
65
|
fal/toolkit/utils/retry.py,sha256=qyIf86LMNf9L-Xgqbjl6vf-CZmhmeDQ6Y9I4LWkU6lk,1289
|
|
66
66
|
openapi_fal_rest/__init__.py,sha256=ziculmF_i6trw63LzZGFX-6W3Lwq9mCR8_UpkpvpaHI,152
|
|
67
67
|
openapi_fal_rest/client.py,sha256=G6BpJg9j7-JsrAUGddYwkzeWRYickBjPdcVgXoPzxuE,2817
|
|
@@ -126,8 +126,8 @@ openapi_fal_rest/models/workflow_node_type.py,sha256=-FzyeY2bxcNmizKbJI8joG7byRi
|
|
|
126
126
|
openapi_fal_rest/models/workflow_schema.py,sha256=4K5gsv9u9pxx2ItkffoyHeNjBBYf6ur5bN4m_zePZNY,2019
|
|
127
127
|
openapi_fal_rest/models/workflow_schema_input.py,sha256=2OkOXWHTNsCXHWS6EGDFzcJKkW5FIap-2gfO233EvZQ,1191
|
|
128
128
|
openapi_fal_rest/models/workflow_schema_output.py,sha256=EblwSPAGfWfYVWw_WSSaBzQVju296is9o28rMBAd0mc,1196
|
|
129
|
-
fal-1.5.
|
|
130
|
-
fal-1.5.
|
|
131
|
-
fal-1.5.
|
|
132
|
-
fal-1.5.
|
|
133
|
-
fal-1.5.
|
|
129
|
+
fal-1.5.7.dist-info/METADATA,sha256=il0Ugmvotw4b1ggJkFYVhH5cDKgQmb_7Eadhi-3i-z4,3989
|
|
130
|
+
fal-1.5.7.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
131
|
+
fal-1.5.7.dist-info/entry_points.txt,sha256=32zwTUC1U1E7nSTIGCoANQOQ3I7-qHG5wI6gsVz5pNU,37
|
|
132
|
+
fal-1.5.7.dist-info/top_level.txt,sha256=r257X1L57oJL8_lM0tRrfGuXFwm66i1huwQygbpLmHw,21
|
|
133
|
+
fal-1.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|