Spaces:
raheem786
/
Paused

akhaliq HF Staff commited on
Commit
ebdc25f
·
1 Parent(s): c6abd4e

Fix empty Language and AI Model dropdowns

Browse files

- Update CORS configuration to allow HuggingFace Space domain and use regex for *.hf.space
- Improve API URL logic in frontend to correctly detect production vs dev environment
- Fix EventSource and WebSocket URL construction to work in both environments
- Allow requests from localhost:7860 for Docker Space internal communication

2 files changed +48 -17
Files changed (2)
backend_api.py+11-2
frontend/src/lib/api.ts+37-15