Skip to content

Conversation

@CalebMorse06
Copy link

Proposed changes
This PR fixes three critical issues that prevent ShortGPT from starting in Docker containers:

🐛 Issue 1: Gradio 5.x Localhost Check Fails
Error: ValueError: When localhost is not accessible, a shareable link must be created Cause: Gradio 5.12.0 performs a localhost accessibility check that fails inside Docker containers. Fix: Downgraded to Gradio 4.19.0 which doesn't have this check.

🐛 Issue 2: HuggingFace Hub Import Error
Error: ImportError: cannot import name 'HfFolder' from 'huggingface_hub' Cause: huggingface_hub 1.0+ removed the HfFolder class that Gradio 4.x imports. Fix: Pinned huggingface_hub<1.0.0.

🐛 Issue 3: ElevenLabs API Crash
Error: KeyError: 'voices' Cause: Code crashes when ElevenLabs API key is invalid/missing. Fix: Added try/except error handling - app now gracefully continues with Edge TTS.

Tested on:
Windows 11 with Docker Desktop
python:3.10-slim-bullseye image
✅ UI loads at http://localhost:31415/
✅ All tabs functional
Types of changes
Bugfix (non-breaking change which fixes an issue) 🐛

- Pin huggingface_hub<1.0.0 to fix HfFolder import error with Gradio 4.x
- Downgrade Gradio 5.12.0 to 4.19.0 to fix localhost accessibility check in Docker
- Add error handling to ElevenLabsAPI.get_voices() to prevent crash on invalid API key
- Add inline documentation explaining version constraints

Fixes Docker startup failures:
- ValueError: When localhost is not accessible...
- ImportError: cannot import name 'HfFolder'
- KeyError: 'voices'
@vercel
Copy link

vercel bot commented Dec 20, 2025

@CalebMorse06 is attempting to deploy a commit to the rayventura's projects Team on Vercel.

A member of the Team first needs to authorize it.

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