fal 1.38.0__py3-none-any.whl → 1.39.0__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/image/__init__.py +6 -5
- {fal-1.38.0.dist-info → fal-1.39.0.dist-info}/METADATA +3 -3
- {fal-1.38.0.dist-info → fal-1.39.0.dist-info}/RECORD +7 -7
- {fal-1.38.0.dist-info → fal-1.39.0.dist-info}/WHEEL +0 -0
- {fal-1.38.0.dist-info → fal-1.39.0.dist-info}/entry_points.txt +0 -0
- {fal-1.38.0.dist-info → fal-1.39.0.dist-info}/top_level.txt +0 -0
fal/_fal_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '1.
|
|
32
|
-
__version_tuple__ = version_tuple = (1,
|
|
31
|
+
__version__ = version = '1.39.0'
|
|
32
|
+
__version_tuple__ = version_tuple = (1, 39, 0)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
fal/toolkit/image/__init__.py
CHANGED
|
@@ -7,18 +7,19 @@ from typing import TYPE_CHECKING
|
|
|
7
7
|
from .image import * # noqa: F403
|
|
8
8
|
|
|
9
9
|
if TYPE_CHECKING:
|
|
10
|
-
|
|
10
|
+
# suffix so we don't clash with PILImage from .image
|
|
11
|
+
from PIL.Image import Image as PILImage2
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
def filter_by(
|
|
14
15
|
has_nsfw_concepts: list[bool],
|
|
15
|
-
images: list[
|
|
16
|
-
) -> list[
|
|
17
|
-
from PIL import Image as
|
|
16
|
+
images: list[PILImage2],
|
|
17
|
+
) -> list[PILImage2]:
|
|
18
|
+
from PIL import Image as PILImageModule
|
|
18
19
|
|
|
19
20
|
return [
|
|
20
21
|
(
|
|
21
|
-
|
|
22
|
+
PILImageModule.new("RGB", (image.width, image.height), (0, 0, 0))
|
|
22
23
|
if has_nsfw
|
|
23
24
|
else image
|
|
24
25
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fal
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.39.0
|
|
4
4
|
Summary: fal is an easy-to-use Serverless Python Framework
|
|
5
5
|
Author: Features & Labels <support@fal.ai>
|
|
6
6
|
Requires-Python: >=3.8
|
|
@@ -17,7 +17,7 @@ Requires-Dist: opentelemetry-sdk<2,>=1.15.0
|
|
|
17
17
|
Requires-Dist: grpc-interceptor<1,>=0.15.0
|
|
18
18
|
Requires-Dist: colorama<1,>=0.4.6
|
|
19
19
|
Requires-Dist: portalocker<3,>=2.7.0
|
|
20
|
-
Requires-Dist: rich<
|
|
20
|
+
Requires-Dist: rich<15,>=13.3.2
|
|
21
21
|
Requires-Dist: rich_argparse
|
|
22
22
|
Requires-Dist: packaging>=21.3
|
|
23
23
|
Requires-Dist: pathspec<1,>=0.11.1
|
|
@@ -33,7 +33,7 @@ Requires-Dist: types-dateparser<2,>=1.2.0
|
|
|
33
33
|
Requires-Dist: importlib-metadata>=4.4; python_version < "3.10"
|
|
34
34
|
Requires-Dist: msgpack<2,>=1.0.7
|
|
35
35
|
Requires-Dist: websockets>=12.0
|
|
36
|
-
Requires-Dist: pillow<
|
|
36
|
+
Requires-Dist: pillow<12,>=10.2.0
|
|
37
37
|
Requires-Dist: pyjwt[crypto]<3,>=2.8.0
|
|
38
38
|
Requires-Dist: uvicorn<1,>=0.29.0
|
|
39
39
|
Requires-Dist: cookiecutter
|
|
@@ -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=Dj2QaXELg6PpeXeLgj_oylZJy58D2f8eumyiKVf19pQ,706
|
|
4
4
|
fal/_serialization.py,sha256=npXNsFJ5G7jzBeBIyVMH01Ww34mGY4XWhHpRbSrTtnQ,7598
|
|
5
5
|
fal/_version.py,sha256=1BbTFnucNC_6ldKJ_ZoC722_UkW4S9aDBSW9L0fkKAw,2315
|
|
6
6
|
fal/api.py,sha256=oWSPxefwyYF93s54mtyYGKWYMax9ll9B-wxijOyARb4,49244
|
|
@@ -65,7 +65,7 @@ fal/toolkit/file/providers/fal.py,sha256=z2Htg7DJoBxq_y4Q71KOGM1mHvJzUQCGtz2_m2l
|
|
|
65
65
|
fal/toolkit/file/providers/gcp.py,sha256=DKeZpm1MjwbvEsYvkdXUtuLIJDr_UNbqXj_Mfv3NTeo,2437
|
|
66
66
|
fal/toolkit/file/providers/r2.py,sha256=YqnYkkAo_ZKIa-xoSuDnnidUFwJWHdziAR34PE6irdI,3061
|
|
67
67
|
fal/toolkit/file/providers/s3.py,sha256=EI45T54Mox7lHZKROss_O8o0DIn3CHP9k1iaNYVrxvg,2714
|
|
68
|
-
fal/toolkit/image/__init__.py,sha256=
|
|
68
|
+
fal/toolkit/image/__init__.py,sha256=7DK6eZYdJpQJih3JISk6JCLLChK28_n8Kv3hMonCIdU,1910
|
|
69
69
|
fal/toolkit/image/image.py,sha256=xmuIKU42DonGHnPS6V5MbLv-wBSlpVvfPTAy2A_Vds0,5614
|
|
70
70
|
fal/toolkit/image/safety_checker.py,sha256=S7ow-HuoVxC6ixHWWcBrAUm2dIlgq3sTAIull6xIbAg,3105
|
|
71
71
|
fal/toolkit/image/nsfw_filter/__init__.py,sha256=0d9D51EhcnJg8cZLYJjgvQJDZT74CfQu6mpvinRYRpA,216
|
|
@@ -143,8 +143,8 @@ openapi_fal_rest/models/workflow_node_type.py,sha256=-FzyeY2bxcNmizKbJI8joG7byRi
|
|
|
143
143
|
openapi_fal_rest/models/workflow_schema.py,sha256=4K5gsv9u9pxx2ItkffoyHeNjBBYf6ur5bN4m_zePZNY,2019
|
|
144
144
|
openapi_fal_rest/models/workflow_schema_input.py,sha256=2OkOXWHTNsCXHWS6EGDFzcJKkW5FIap-2gfO233EvZQ,1191
|
|
145
145
|
openapi_fal_rest/models/workflow_schema_output.py,sha256=EblwSPAGfWfYVWw_WSSaBzQVju296is9o28rMBAd0mc,1196
|
|
146
|
-
fal-1.
|
|
147
|
-
fal-1.
|
|
148
|
-
fal-1.
|
|
149
|
-
fal-1.
|
|
150
|
-
fal-1.
|
|
146
|
+
fal-1.39.0.dist-info/METADATA,sha256=1nkxD7yxfTSJDAsw7XVEfxyzfRGwvekOwBliYo4smPI,4132
|
|
147
|
+
fal-1.39.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
148
|
+
fal-1.39.0.dist-info/entry_points.txt,sha256=32zwTUC1U1E7nSTIGCoANQOQ3I7-qHG5wI6gsVz5pNU,37
|
|
149
|
+
fal-1.39.0.dist-info/top_level.txt,sha256=r257X1L57oJL8_lM0tRrfGuXFwm66i1huwQygbpLmHw,21
|
|
150
|
+
fal-1.39.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|