Space not starting

I’ve been trying to get this space to work: ASR N-gram Language Modeling - a Hugging Face Space by Tamazight-NLP
It either timeouts while starting or throws an incomprehensible error (runtime error Exit code: ?. Reason: ).
I’ve tried restarting, factory reset, and setting app_port in the README, but nothing works.
The docker container works just fine on my machine.
I’m really out of ideas, any help would be greatly appreciated.

1 Like

It seems to be caused by a failed build of boost_1_80_0.tar.bz2 in install_beamsearch_decoders.sh and a loop.

I think Boost was built successfully because the script you mentioned prints “FAILURE” in case it fails and because subsequent libraries that depend on Boost were also built without issues. Looking at the logs, I can only see compilation warnings which I have on my machine too, but the app works just fine.
Which loop are you referring to?

1 Like

Duplicate this and run it. Only the author himself can see the log in space…
You should see it looping in weird places without erroring out.

Yes, this one keeps restarting without erroring out, but I see you’ve made some modifications. The original usually doesn’t do this. It times out or errors out (but the error is unknown).
I don’t really think there’s anything wrong with the Dockerfile or the code, because everything works flawlessly on my machine.

1 Like

Thank you for trying to fix it though.

1 Like

HF’s Spaces seems to have a few different quirks than Colab or even regular virtual environments, and it is difficult to try to install something at startup.
But I can’t write Boost in requiements.txt, and honestly I can’t do anything about it.
I tried tweaking the version a bit, but it’s the same, so I guess Boost and HF Spaces are fundamentally incompatible.
If we’re simply missing something, we’ll just install ours…

1 Like