2025年6月29日 星期日

Mapleboard MP510-50 測試 (二十四) : 安裝 Streamlit 與 Gradio

昨晚處理完 Guest 帳戶問題後網站重新上線, 就打鐵趁熱繼續向前推進, 安裝兩個我最常用的 Python Web App 開發套件 : Streamlit 與 Gradio. 自從學會它們的用法後, 就比較少用 Django 與 Flask 開發網頁應用了.

本系列全部測試筆記索引參考 :



1. 安裝 Streamlit : 

Streamlit 是一個專為資料科學家, 分析師與開發者設計的 Python Web 應用框架, Python 程式開發者毋須熟悉 HTML / CSS / JS 等網頁相關技術即可快速建立一個資料互動, 模型測試或可視化的 Web 應用, 特別適合下列應用場景 : 
  • 資料視覺化應用
  • 機器學習模型展示與測試平台
  • 表單或工具類應用
  • 即時互動儀表板
  • 自助式資料應用系統
  • 簡易部署的 Python Web 應用
但對於下列應用則不適合 :
  • 多人同時使用的大型商業系統 (不支援使用者登入與會話管理)
  • 即時遊戲 (缺乏 Canvas 動態動畫精細控制功能)
  • 高客製化 UI 設計需求 (Streamlit 元件樣式固定)
使用 pip3 安裝 :

tony1966@LX2438:~$ pip3 install streamlit   
Defaulting to user installation because normal site-packages is not writeable
Collecting streamlit
  Downloading streamlit-1.46.1-py3-none-any.whl (10.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.1/10.1 MB 6.1 MB/s eta 0:00:00
Collecting tornado!=6.5.0,<7,>=6.0.3
  Downloading tornado-6.5.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (443 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 443.7/443.7 KB 7.2 MB/s eta 0:00:00
Collecting altair<6,>=4.0
  Downloading altair-5.5.0-py3-none-any.whl (731 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 731.2/731.2 KB 7.4 MB/s eta 0:00:00
Collecting cachetools<7,>=4.0
  Downloading cachetools-6.1.0-py3-none-any.whl (11 kB)
Collecting numpy<3,>=1.23
  Downloading numpy-2.2.6-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.3/14.3 MB 5.7 MB/s eta 0:00:00
Collecting pandas<3,>=1.4.0
  Downloading pandas-2.3.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (11.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.7/11.7 MB 6.1 MB/s eta 0:00:00
Collecting gitpython!=3.1.19,<4,>=3.0.7
  Downloading GitPython-3.1.44-py3-none-any.whl (207 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 207.6/207.6 KB 6.2 MB/s eta 0:00:00
Collecting watchdog<7,>=2.1.5
  Downloading watchdog-6.0.0-py3-none-manylinux2014_aarch64.whl (79 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.1/79.1 KB 4.1 MB/s eta 0:00:00
Requirement already satisfied: click<9,>=7.0 in ./.local/lib/python3.10/site-packages (from streamlit) (8.1.8)
Requirement already satisfied: toml<2,>=0.10.1 in /usr/lib/python3/dist-packages (from streamlit) (0.10.2)
Collecting protobuf<7,>=3.20
  Downloading protobuf-6.31.1-cp39-abi3-manylinux2014_aarch64.whl (322 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 322.1/322.1 KB 6.1 MB/s eta 0:00:00
Collecting pyarrow>=7.0
  Downloading pyarrow-20.0.0-cp310-cp310-manylinux_2_28_aarch64.whl (40.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.7/40.7 MB 3.9 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions<5,>=4.4.0 in ./.local/lib/python3.10/site-packages (from streamlit) (4.12.0)
Requirement already satisfied: pillow<12,>=7.1.0 in /usr/lib/python3/dist-packages (from streamlit) (9.0.1)
Requirement already satisfied: blinker<2,>=1.5.0 in ./.local/lib/python3.10/site-packages (from streamlit) (1.9.0)
Collecting pydeck<1,>=0.8.0b4
  Downloading pydeck-0.9.1-py2.py3-none-any.whl (6.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.9/6.9 MB 6.4 MB/s eta 0:00:00
Collecting requests<3,>=2.27
  Downloading requests-2.32.4-py3-none-any.whl (64 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.8/64.8 KB 3.1 MB/s eta 0:00:00
Collecting packaging<26,>=20
  Downloading packaging-25.0-py3-none-any.whl (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.5/66.5 KB 2.6 MB/s eta 0:00:00
Collecting tenacity<10,>=8.1.0
  Downloading tenacity-9.1.2-py3-none-any.whl (28 kB)
Requirement already satisfied: jinja2 in ./.local/lib/python3.10/site-packages (from altair<6,>=4.0->streamlit) (3.1.5)
Collecting jsonschema>=3.0
  Downloading jsonschema-4.24.0-py3-none-any.whl (88 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.7/88.7 KB 3.6 MB/s eta 0:00:00
Collecting narwhals>=1.14.2
  Downloading narwhals-1.44.0-py3-none-any.whl (365 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 365.2/365.2 KB 5.5 MB/s eta 0:00:00
Collecting gitdb<5,>=4.0.1
  Downloading gitdb-4.0.12-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 KB 3.2 MB/s eta 0:00:00
Collecting python-dateutil>=2.8.2
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 KB 4.7 MB/s eta 0:00:00
Collecting tzdata>=2022.7
  Downloading tzdata-2025.2-py2.py3-none-any.whl (347 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 347.8/347.8 KB 6.6 MB/s eta 0:00:00
Requirement already satisfied: pytz>=2020.1 in /usr/lib/python3/dist-packages (from pandas<3,>=1.4.0->streamlit) (2022.1)
Collecting charset_normalizer<4,>=2
  Downloading charset_normalizer-3.4.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (144 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 144.6/144.6 KB 3.2 MB/s eta 0:00:00
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests<3,>=2.27->streamlit) (3.3)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/dist-packages (from requests<3,>=2.27->streamlit) (1.26.5)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.10/site-packages (from requests<3,>=2.27->streamlit) (2024.2.2)
Collecting smmap<6,>=3.0.1
  Downloading smmap-5.0.2-py3-none-any.whl (24 kB)
Requirement already satisfied: MarkupSafe>=2.0 in ./.local/lib/python3.10/site-packages (from jinja2->altair<6,>=4.0->streamlit) (3.0.2)
Collecting referencing>=0.28.4
  Downloading referencing-0.36.2-py3-none-any.whl (26 kB)
Collecting rpds-py>=0.7.1
  Downloading rpds_py-0.25.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (386 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 386.2/386.2 KB 2.9 MB/s eta 0:00:00
Collecting jsonschema-specifications>=2023.03.6
  Downloading jsonschema_specifications-2025.4.1-py3-none-any.whl (18 kB)
Requirement already satisfied: attrs>=22.2.0 in ./.local/lib/python3.10/site-packages (from jsonschema>=3.0->altair<6,>=4.0->streamlit) (23.2.0)
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.2->pandas<3,>=1.4.0->streamlit) (1.16.0)
Installing collected packages: watchdog, tzdata, tornado, tenacity, smmap, rpds-py, python-dateutil, pyarrow, protobuf, packaging, numpy, narwhals, charset_normalizer, cachetools, requests, referencing, pydeck, pandas, gitdb, jsonschema-specifications, gitpython, jsonschema, altair, streamlit
Successfully installed altair-5.5.0 cachetools-6.1.0 charset_normalizer-3.4.2 gitdb-4.0.12 gitpython-3.1.44 jsonschema-4.24.0 jsonschema-specifications-2025.4.1 narwhals-1.44.0 numpy-2.2.6 packaging-25.0 pandas-2.3.0 protobuf-6.31.1 pyarrow-20.0.0 pydeck-0.9.1 python-dateutil-2.9.0.post0 referencing-0.36.2 requests-2.32.4 rpds-py-0.25.1 smmap-5.0.2 streamlit-1.46.1 tenacity-9.1.2 tornado-6.5.1 tzdata-2025.2 watchdog-6.0.0

檢視版本 :

Python 3.10.12 (/usr/bin/python3)  
>>> import streamlit as st   
>>> st.__version__     
'1.46.1' 


2. 安裝 Gradio : 

Gradio 是一個用來快速建立機器學習模型 Web 介面的 Python 函式庫, 它最主要的強項就是讓開發者快速把 ML 模型包成一個可測試的介面, 只需要單行程式碼 gr.Interface(fn, inputs, outputs) 就能完成基本模型包裝, 最適合的應用情境如下 : 
  • ML 模型互動測試工具
  • 互動式 AI 工具
  •  多人使用的小型應用服務
  • AI App Demo 平台(如 Hugging Face Spaces)
  • 快速原型設計
但對於下列應用則不適合 :
  • 高客製化 UI 設計需求 (Gradio 元件樣式固定)
  • 需要導覽列或多頁表單的多頁面應用 (Blocks 架構不如 Streamlit 有彈性) 
  • 商用大型平台 (Gradio 缺乏使用者登入, 資料庫整合, 與會話管理等後端功能)
  • 即時遊戲 (Gradio 缺乏動態資料視覺化功能)
使用 pip3 安裝 : 

tony1966@LX2438:~$ pip3 install gradio   
Defaulting to user installation because normal site-packages is not writeable
Collecting gradio
  Downloading gradio-5.35.0-py3-none-any.whl (54.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.3/54.3 MB 3.6 MB/s eta 0:00:00
Collecting huggingface-hub>=0.28.1
  Downloading huggingface_hub-0.33.1-py3-none-any.whl (515 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 515.4/515.4 KB 5.2 MB/s eta 0:00:00
Collecting typer<1.0,>=0.12
  Downloading typer-0.16.0-py3-none-any.whl (46 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 46.3/46.3 KB 2.7 MB/s eta 0:00:00
Collecting anyio<5.0,>=3.0
  Downloading anyio-4.9.0-py3-none-any.whl (100 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100.9/100.9 KB 5.5 MB/s eta 0:00:00
Collecting tomlkit<0.14.0,>=0.12.0
  Downloading tomlkit-0.13.3-py3-none-any.whl (38 kB)
Requirement already satisfied: markupsafe<4.0,>=2.0 in ./.local/lib/python3.10/site-packages (from gradio) (3.0.2)
Collecting safehttpx<0.2.0,>=0.1.6
  Downloading safehttpx-0.1.6-py3-none-any.whl (8.7 kB)
Collecting aiofiles<25.0,>=22.0
  Downloading aiofiles-24.1.0-py3-none-any.whl (15 kB)
Requirement already satisfied: pillow<12.0,>=8.0 in /usr/lib/python3/dist-packages (from gradio) (9.0.1)
Collecting ruff>=0.9.3
  Downloading ruff-0.12.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (10.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.7/10.7 MB 5.3 MB/s eta 0:00:00
Collecting pydub
  Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Requirement already satisfied: numpy<3.0,>=1.0 in ./.local/lib/python3.10/site-packages (from gradio) (2.2.6)
Collecting fastapi<1.0,>=0.115.2
  Downloading fastapi-0.115.14-py3-none-any.whl (95 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 95.5/95.5 KB 4.4 MB/s eta 0:00:00
Collecting pydantic<2.12,>=2.0
  Downloading pydantic-2.11.7-py3-none-any.whl (444 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 444.8/444.8 KB 6.2 MB/s eta 0:00:00
Collecting orjson~=3.0
  Downloading orjson-3.10.18-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (136 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.0/137.0 KB 5.7 MB/s eta 0:00:00
Collecting python-multipart>=0.0.18
  Downloading python_multipart-0.0.20-py3-none-any.whl (24 kB)
Collecting gradio-client==1.10.4
  Downloading gradio_client-1.10.4-py3-none-any.whl (323 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 323.9/323.9 KB 6.8 MB/s eta 0:00:00
Collecting httpx>=0.24.1
  Downloading httpx-0.28.1-py3-none-any.whl (73 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 73.5/73.5 KB 3.9 MB/s eta 0:00:00
Collecting groovy~=0.1
  Downloading groovy-0.1.2-py3-none-any.whl (14 kB)
Requirement already satisfied: packaging in ./.local/lib/python3.10/site-packages (from gradio) (25.0)
Requirement already satisfied: jinja2<4.0 in ./.local/lib/python3.10/site-packages (from gradio) (3.1.5)
Collecting semantic-version~=2.0
  Downloading semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting uvicorn>=0.14.0
  Downloading uvicorn-0.35.0-py3-none-any.whl (66 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.4/66.4 KB 3.2 MB/s eta 0:00:00
Collecting ffmpy
  Downloading ffmpy-0.6.0-py3-none-any.whl (5.5 kB)
Collecting starlette<1.0,>=0.40.0
  Downloading starlette-0.47.1-py3-none-any.whl (72 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.7/72.7 KB 4.1 MB/s eta 0:00:00
Requirement already satisfied: pandas<3.0,>=1.0 in ./.local/lib/python3.10/site-packages (from gradio) (2.3.0)
Requirement already satisfied: pyyaml<7.0,>=5.0 in /usr/lib/python3/dist-packages (from gradio) (5.4.1)
Requirement already satisfied: typing-extensions~=4.0 in ./.local/lib/python3.10/site-packages (from gradio) (4.12.0)
Collecting websockets<16.0,>=10.0
  Downloading websockets-15.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (182 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 182.3/182.3 KB 399.3 kB/s eta 0:00:00
Collecting fsspec
  Downloading fsspec-2025.5.1-py3-none-any.whl (199 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.1/199.1 KB 6.7 MB/s eta 0:00:00
Requirement already satisfied: idna>=2.8 in /usr/lib/python3/dist-packages (from anyio<5.0,>=3.0->gradio) (3.3)
Requirement already satisfied: sniffio>=1.1 in ./.local/lib/python3.10/site-packages (from anyio<5.0,>=3.0->gradio) (1.3.1)
Requirement already satisfied: exceptiongroup>=1.0.2 in ./.local/lib/python3.10/site-packages (from anyio<5.0,>=3.0->gradio) (1.2.1)
Collecting starlette<1.0,>=0.40.0
  Downloading starlette-0.46.2-py3-none-any.whl (72 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 72.0/72.0 KB 3.3 MB/s eta 0:00:00
Requirement already satisfied: certifi in ./.local/lib/python3.10/site-packages (from httpx>=0.24.1->gradio) (2024.2.2)
Collecting httpcore==1.*
  Downloading httpcore-1.0.9-py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.8/78.8 KB 4.0 MB/s eta 0:00:00
Collecting h11>=0.16
  Downloading h11-0.16.0-py3-none-any.whl (37 kB)
Collecting hf-xet<2.0.0,>=1.1.2
  Downloading hf_xet-1.1.5-cp37-abi3-manylinux_2_28_aarch64.whl (3.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 5.6 MB/s eta 0:00:00
Requirement already satisfied: requests in ./.local/lib/python3.10/site-packages (from huggingface-hub>=0.28.1->gradio) (2.32.4)
Collecting tqdm>=4.42.1
  Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 KB 4.0 MB/s eta 0:00:00
Collecting filelock
  Downloading filelock-3.18.0-py3-none-any.whl (16 kB)
Requirement already satisfied: tzdata>=2022.7 in ./.local/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio) (2025.2)
Requirement already satisfied: python-dateutil>=2.8.2 in ./.local/lib/python3.10/site-packages (from pandas<3.0,>=1.0->gradio) (2.9.0.post0)
Requirement already satisfied: pytz>=2020.1 in /usr/lib/python3/dist-packages (from pandas<3.0,>=1.0->gradio) (2022.1)
Collecting typing-inspection>=0.4.0
  Downloading typing_inspection-0.4.1-py3-none-any.whl (14 kB)
Collecting typing-extensions~=4.0
  Downloading typing_extensions-4.14.0-py3-none-any.whl (43 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.8/43.8 KB 2.1 MB/s eta 0:00:00
Collecting annotated-types>=0.6.0
  Downloading annotated_types-0.7.0-py3-none-any.whl (13 kB)
Collecting pydantic-core==2.33.2
  Downloading pydantic_core-2.33.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 3.1 MB/s eta 0:00:00
Collecting shellingham>=1.3.0
  Downloading shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
Requirement already satisfied: click>=8.0.0 in ./.local/lib/python3.10/site-packages (from typer<1.0,>=0.12->gradio) (8.1.8)
Collecting rich>=10.11.0
  Downloading rich-14.0.0-py3-none-any.whl (243 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 243.2/243.2 KB 7.6 MB/s eta 0:00:00
Requirement already satisfied: six>=1.5 in /usr/lib/python3/dist-packages (from python-dateutil>=2.8.2->pandas<3.0,>=1.0->gradio) (1.16.0)
Collecting markdown-it-py>=2.2.0
  Downloading markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 87.5/87.5 KB 4.4 MB/s eta 0:00:00
Collecting pygments<3.0.0,>=2.13.0
  Downloading pygments-2.19.2-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 5.9 MB/s eta 0:00:00
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/lib/python3/dist-packages (from requests->huggingface-hub>=0.28.1->gradio) (1.26.5)
Requirement already satisfied: charset_normalizer<4,>=2 in ./.local/lib/python3.10/site-packages (from requests->huggingface-hub>=0.28.1->gradio) (3.4.2)
Collecting mdurl~=0.1
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Installing collected packages: pydub, websockets, typing-extensions, tqdm, tomlkit, shellingham, semantic-version, ruff, python-multipart, pygments, orjson, mdurl, hf-xet, h11, groovy, fsspec, filelock, ffmpy, annotated-types, aiofiles, uvicorn, typing-inspection, pydantic-core, markdown-it-py, huggingface-hub, httpcore, anyio, starlette, rich, pydantic, httpx, typer, safehttpx, gradio-client, fastapi, gradio
  Attempting uninstall: typing-extensions
    Found existing installation: typing_extensions 4.12.0
    Uninstalling typing_extensions-4.12.0:
      Successfully uninstalled typing_extensions-4.12.0
  Attempting uninstall: h11
    Found existing installation: h11 0.14.0
    Uninstalling h11-0.14.0:
      Successfully uninstalled h11-0.14.0
Successfully installed aiofiles-24.1.0 annotated-types-0.7.0 anyio-4.9.0 fastapi-0.115.14 ffmpy-0.6.0 filelock-3.18.0 fsspec-2025.5.1 gradio-5.35.0 gradio-client-1.10.4 groovy-0.1.2 h11-0.16.0 hf-xet-1.1.5 httpcore-1.0.9 httpx-0.28.1 huggingface-hub-0.33.1 markdown-it-py-3.0.0 mdurl-0.1.2 orjson-3.10.18 pydantic-2.11.7 pydantic-core-2.33.2 pydub-0.25.1 pygments-2.19.2 python-multipart-0.0.20 rich-14.0.0 ruff-0.12.1 safehttpx-0.1.6 semantic-version-2.10.0 shellingham-1.5.4 starlette-0.46.2 tomlkit-0.13.3 tqdm-4.67.1 typer-0.16.0 typing-extensions-4.14.0 typing-inspection-0.4.1 uvicorn-0.35.0 websockets-15.0.1

檢視版本 : 

>>> import gradio as gr  
>>> gr.__version__  
'5.35.0'

沒有留言 :