Skip to content

fix: resolve module missing crash on HF Space startup#10

Merged
mauryasameer merged 2 commits into
devfrom
fix/hf-space-startup
Apr 7, 2026
Merged

fix: resolve module missing crash on HF Space startup#10
mauryasameer merged 2 commits into
devfrom
fix/hf-space-startup

Conversation

@mauryasameer

Copy link
Copy Markdown
Owner

Fixes a ModuleNotFoundError on HuggingFace Spaces by adding src/ to sys.path in app.py and updating Dockerfile to copy the new src/ directory.

chore: promote dev to main (deployment and guidelines fixes)
…src)

- Update Dockerfile to COPY the valid 'src/' directory instead of the deleted 'core/' directory.
- Remove download_models.py references from Dockerfile as the script was deleted.
- Inject os.path.dirname(__file__) into sys.path in app.py to resolve module discovery issues in non-standard execution environments (like HuggingFace Gradio Spaces).
@mauryasameer mauryasameer merged commit 2c97224 into dev Apr 7, 2026
3 checks passed
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