Web UI Launching
This section provides the public API details for starting the Web UI programmatically.
Web UI Launching Function
- duosubs.create_duosubs_gr_blocks(cache_delete_frequency: int = 3600, cache_delete_age: int = 14400) Blocks
Builds and returns the main Gradio Blocks UI for DuoSubs.
- Parameters:
cache_delete_frequency (int) – How often to delete cache (seconds).
cache_delete_age (int) – Age threshold for cache deletion (seconds).
- Returns:
The constructed Gradio UI.
- Return type:
gradio.Blocks
See Gradio Blocks Docs
for more information about gradio.Blocks.