Skip to content

Conversation

@index-null
Copy link

@index-null index-null commented Jan 7, 2026

Improve Hugging Face UI reliability and user experience by addressing path handling issues and API deprecations.

Changes

  • Replace relative paths with absolute path resolution to prevent unnecessary model redownloads on each startup
  • Organize output and example files into dedicated subdirectories (output/, examples/) to prevent root directory pollution
  • Update deprecated Gradio API calls (gr.inputs.Image/Checkbox to gr.Image/Checkbox, gr.outputs.* to gr.Image/File)
  • Implement version-agnostic queue initialization with fallback for different Gradio versions
  • Add informative logging for model checking, downloading, and startup status
  • Add exception handling for failed example image downloads
  • Improve UI labels and slider configurations for better clarity

Benefits

  • Models are not re-downloaded on every UI startup
  • Cleaner project structure with organized output directories
  • Compatible with current and future Gradio versions
  • Better user feedback with status messages during initialization
  • More robust error handling for network issues
image

- Replace relative paths with absolute paths to prevent duplicate model downloads
- Organize output and example files into dedicated subdirectories
- Update deprecated Gradio API (gr.inputs/outputs to gr.Image/File)
- Implement version-agnostic queue initialization for compatibility
- Add status logging during startup and model loading
- Add error handling for example image downloads
- Improve parameter labels and slider configurations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant