Alina Lozovskaya commited on
Commit
a18a1a4
1 Parent(s): e82b8ef

Conditional initialization based on SKIP_INIT

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -114,8 +114,10 @@ def init_space(full_init: bool = True):
114
  return leaderboard_df, original_df, plot_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df
115
 
116
 
 
 
117
  leaderboard_df, original_df, plot_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = (
118
- init_space()
119
  )
120
 
121
 
 
114
  return leaderboard_df, original_df, plot_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df
115
 
116
 
117
+ skip_init = os.getenv("SKIP_INIT", "False") == "True"
118
+
119
  leaderboard_df, original_df, plot_df, finished_eval_queue_df, running_eval_queue_df, pending_eval_queue_df = (
120
+ init_space(full_init=(not skip_init))
121
  )
122
 
123