I’ve been trying to make a 3d photo inpainting project work on huggingface spaces. After finally getting PyQt5 working with a headless display (lots of fun debugging via subprocess
calls via python in app.py
, since we don’t have access to the shell 0.0), it turns out spaces automatically timesout at around ~60 seconds?
The documentation said to use enable_queue=True
in the iface.launch(enable_queue=True)
function for gradio, but this doesn’t seem to help. Does HF Spaces automatically drop requests that span longer than 60 seconds? (the gradio timer on the spaces page counts up to 60, then prints error afterwards).
Checking the logs does show that the inference is able to finish running, but won’t be able to return anything back to the front-end via gradio since the connection gets cut.
Spaces currently set to private, but if any HF devs want to take a look & have access to private instances, here’s the link 3D_Photo_Inpainting - a Hugging Face Space by Classified
Error on request:
Traceback (most recent call last):
File "/home/user/.local/lib/python3.8/site-packages/werkzeug/serving.py", line 319, in run_wsgi
execute(self.server.app)
File "/home/user/.local/lib/python3.8/site-packages/werkzeug/serving.py", line 311, in execute
write(data)
File "/home/user/.local/lib/python3.8/site-packages/werkzeug/serving.py", line 290, in write
self.wfile.write(data)
File "/usr/local/lib/python3.8/socketserver.py", line 826, in write
self._sock.sendall(b)
TimeoutError: [Errno 110] Connection timed out