3 days ago
-
Upgrade to Gradio 6.x-style API + Python 3.13+ support (UI unchanged) (part 2)
API surface now matches Gradio 6.x structure:
- Removed legacy modules: gradio.inputs, gradio.outputs, gradio.mix
(Series/Parallel), gradio.interpretation, gradio.deploy_space,
Carousel/StatusTracker/Interpretation components
- Removed top-level aliases (gr.Text, gr.Json, gr.Box, gr.TabItem, gr.update);
canonical flat component names only
- Interface: allow_flagging -> flagging_mode (deprecated alias kept),
removed interpretation/num_shap, removed Interface.load (use gr.load)
- Blocks.queue(): default_concurrency_limit replaces concurrency_count
- Blocks.launch(): removed enable_queue/show_tips/encrypt/file_directories,
added pwa/ssr_mode; queue always enabled
- Blocks.load() is instance-only (event); gr.load() for external repos
- New gr.on() multi-trigger event helper; gr.load() canonical hf_token param
Python 3.13+ / modern dependency fixes:
- requirements: numpy>=2.1, pydantic>=2.7, fastapi>=0.115, pandas>=2.2.3,
pillow>=10.4, altair 5.4-6, gradio_client 1.5-2, audioop… -
Upload folder using huggingface_hub (part 4)