meg HF Staff commited on
Commit
ebcf57b
·
verified ·
1 Parent(s): ccb86e6

Commenting out error log check (for now).

Browse files
Files changed (1) hide show
  1. entrypoint.sh +8 -8
entrypoint.sh CHANGED
@@ -20,14 +20,14 @@ python /parse_requests.py | while read line; do
20
  echo "Trying the curl thing."
21
  curl https://api.hf.space/v1/${SPACE}/logs/run -H
22
 
23
- if [ -s $run_dir/error.log ]; then
24
- # error.log is not-empty, an error was raised
25
- echo "An error was raised while benchmarking the model..."
26
- python /failed_run.py --run_dir $run_dir --model_name $backend_model
27
-
28
- # Delete the current run directory so that it is not pushed by create_results.py later
29
- rm -rf $run_dir
30
- fi
31
  done
32
 
33
  # The file is empty, so no error
 
20
  echo "Trying the curl thing."
21
  curl https://api.hf.space/v1/${SPACE}/logs/run -H
22
 
23
+ #if [ -s $run_dir/error.log ]; then
24
+ # # error.log is not-empty, an error was raised
25
+ # echo "An error was raised while benchmarking the model..."
26
+ # python /failed_run.py --run_dir $run_dir --model_name $backend_model
27
+ #
28
+ # # Delete the current run directory so that it is not pushed by create_results.py later
29
+ # rm -rf $run_dir
30
+ #fi
31
  done
32
 
33
  # The file is empty, so no error