Vũ Thanh Hà commited on
Commit
267ef18
1 Parent(s): 77d0a7c

Update 2_hf_repo_info.py

Browse files
Files changed (1) hide show
  1. 2_hf_repo_info.py +3 -1
2_hf_repo_info.py CHANGED
@@ -60,9 +60,9 @@ for model in models:
60
  "id": model.id,
61
  "last_modified": diff,
62
  "ckpt_list": last_ckpt,
 
63
  "huggingface": f'https://huggingface.co/{model.id}/tree/main' if model.id else None,
64
  "notebook": f"https://www.kaggle.com/code/hahunavth/ess-vlsp2023-train-{step}" if model.id else None,
65
- "status": None,
66
  "config": f"/kaggle/repo/vlsp2023-ess/config/exp{step}",
67
  # "command": "st.balloons",
68
  # "is_widget": True
@@ -87,6 +87,8 @@ async def set_df_kernel_status(df, n=12):
87
  df.at[i, "status"] = status
88
  print(i, status)
89
 
 
 
90
  asyncio.run(set_df_kernel_status(df))
91
 
92
  edit_df = st.data_editor(
 
60
  "id": model.id,
61
  "last_modified": diff,
62
  "ckpt_list": last_ckpt,
63
+ "status": None,
64
  "huggingface": f'https://huggingface.co/{model.id}/tree/main' if model.id else None,
65
  "notebook": f"https://www.kaggle.com/code/hahunavth/ess-vlsp2023-train-{step}" if model.id else None,
 
66
  "config": f"/kaggle/repo/vlsp2023-ess/config/exp{step}",
67
  # "command": "st.balloons",
68
  # "is_widget": True
 
87
  df.at[i, "status"] = status
88
  print(i, status)
89
 
90
+ st.button("Update kernel status", on_click=lambda: get_kernel_status.clear())
91
+
92
  asyncio.run(set_df_kernel_status(df))
93
 
94
  edit_df = st.data_editor(