Spaces:
Runtime error
Runtime error
Debugging getting the error logs.
Browse files- entrypoint.sh +3 -2
entrypoint.sh
CHANGED
@@ -18,8 +18,9 @@ python /parse_requests.py | while read line; do
|
|
18 |
optimum-benchmark --config-name ${experiment_name} --config-dir /optimum-benchmark/examples/energy_star/ backend.model=${backend_model} backend.processor=${backend_model} hydra.run.dir=${run_dir} 2> $run_dir/error.log
|
19 |
|
20 |
done || {
|
21 |
-
echo "Trying the curl thing."
|
22 |
-
curl https://api.hf.space/v1/${SPACE}/logs/run
|
|
|
23 |
}
|
24 |
|
25 |
#if [ -s $run_dir/error.log ]; then
|
|
|
18 |
optimum-benchmark --config-name ${experiment_name} --config-dir /optimum-benchmark/examples/energy_star/ backend.model=${backend_model} backend.processor=${backend_model} hydra.run.dir=${run_dir} 2> $run_dir/error.log
|
19 |
|
20 |
done || {
|
21 |
+
echo "Trying the curl thing to get the error logs."
|
22 |
+
curl https://api.hf.space/v1/${SPACE}/logs/run -H "Authorization: Bearer ${DEBUG}"
|
23 |
+
echo "DID IT WORK?!"
|
24 |
}
|
25 |
|
26 |
#if [ -s $run_dir/error.log ]; then
|