mirror of
https://github.com/vladmandic/automatic
synced 2026-09-13 18:18:44 +02:00
explicit gradio requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
+6
-5
@@ -1038,13 +1038,14 @@ def reload(package, desired=None):
|
||||
def install_gradio():
|
||||
# pip install gradio==3.43.2 installs:
|
||||
# aiofiles-23.2.1 altair-5.5.0 annotated-types-0.7.0 anyio-4.9.0 attrs-25.3.0 certifi-2025.6.15 charset_normalizer-3.4.2 click-8.2.1 contourpy-1.3.2 cycler-0.12.1 fastapi-0.115.14 ffmpy-0.6.0 filelock-3.18.0 fonttools-4.58.4 fsspec-2025.5.1 gradio-3.43.2 gradio-client-0.5.0 h11-0.16.0 hf-xet-1.1.5 httpcore-1.0.9 httpx-0.28.1 huggingface-hub-0.33.1 idna-3.10 importlib-resources-6.5.2 jinja2-3.1.6 jsonschema-4.24.0 jsonschema-specifications-2025.4.1 kiwisolver-1.4.8 markupsafe-2.1.5 matplotlib-3.10.3 narwhals-1.45.0 numpy-1.26.4 orjson-3.10.18 packaging-25.0 pandas-2.3.0 pillow-10.4.0 pydantic-2.11.7 pydantic-core-2.33.2 pydub-0.25.1 pyparsing-3.2.3 python-dateutil-2.9.0.post0 python-multipart-0.0.20 pytz-2025.2 pyyaml-6.0.2 referencing-0.36.2 requests-2.32.4 rpds-py-0.25.1 semantic-version-2.10.0 six-1.17.0 sniffio-1.3.1 starlette-0.46.2 tqdm-4.67.1 typing-extensions-4.14.0 typing-inspection-0.4.1 tzdata-2025.2 urllib3-2.5.0 uvicorn-0.35.0 websockets-11.0.3
|
||||
if installed('gradio', quiet=True):
|
||||
return
|
||||
install('gradio==3.43.2', no_deps=True)
|
||||
install('gradio-client==0.5.0', no_deps=True, quiet=True)
|
||||
if not quick_allowed: # on quick path these are guaranteed installed by the state file
|
||||
pkgs = ['fastapi', 'websockets', 'aiofiles', 'ffmpy', 'pydub', 'uvicorn', 'semantic-version', 'altair', 'python-multipart', 'matplotlib']
|
||||
for pkg in pkgs:
|
||||
if not installed(pkg, quiet=True):
|
||||
install(pkg, quiet=True)
|
||||
pkgs = ['fastapi', 'websockets', 'aiofiles', 'ffmpy', 'pydub', 'uvicorn', 'semantic-version', 'altair', 'python-multipart', 'matplotlib']
|
||||
for pkg in pkgs:
|
||||
if not installed(pkg, quiet=True):
|
||||
install(pkg, quiet=True)
|
||||
|
||||
|
||||
def install_pydantic():
|
||||
|
||||
@@ -16,6 +16,7 @@ toml
|
||||
voluptuous
|
||||
fasteners
|
||||
orjson
|
||||
websockets
|
||||
|
||||
# versioned
|
||||
fastapi==0.124.4
|
||||
|
||||
Reference in New Issue
Block a user