HF spaces deployment #182655
-
HF backend deployment using FAST APIQuestion issue with startingI succesfully did everything managed to run the FASTAPI backend using docker container on HF spcaes but it kept getting stuck on starting and not moving on, stuck for 30 minutes and then closed by HF spaces. Any idea on how to resolve that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Well, it seems as the HF space starts but it dont know how to go forward from there. To tackle that problem u can check ur docker exposed port and startup.sh port for the FastAPI backend. Another thing is the main.py in the backend folder, locally it can deploy with no issues but on HF spaces it requires a special API to load the HTML page. It goes like Worked like a charm for me. And started the backend successfully. |
Beta Was this translation helpful? Give feedback.
Well, it seems as the HF space starts but it dont know how to go forward from there. To tackle that problem u can check ur docker exposed port and startup.sh port for the FastAPI backend. Another thing is the main.py in the backend folder, locally it can deploy with no issues but on HF spaces it requires a special API to load the HTML page. It goes like