Eran Fainman commited on
Commit
b51e543
·
1 Parent(s): 254099a

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -20,14 +20,10 @@ API = hh.HfApi(token=TOKEN)
20
  def restart_space():
21
  API.restart_space(repo_id=REPO_ID)
22
 
23
-
24
- try:
25
- hh.snapshot_download(
26
- repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type=None, tqdm_class=None, etag_timeout=30,
27
- token=TOKEN
28
- )
29
- except Exception:
30
- restart_space()
31
 
32
  df_results = pd.read_csv(os.path.join(EVAL_RESULTS_PATH, 'results.csv'))
33
  st.table(df_results)
 
20
  def restart_space():
21
  API.restart_space(repo_id=REPO_ID)
22
 
23
+ hh.snapshot_download(
24
+ repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type=None, tqdm_class=None, etag_timeout=30,
25
+ token=TOKEN
26
+ )
 
 
 
 
27
 
28
  df_results = pd.read_csv(os.path.join(EVAL_RESULTS_PATH, 'results.csv'))
29
  st.table(df_results)