xi0v commited on
Commit
13e4fc6
·
verified ·
1 Parent(s): 2a94399

Set factory_reboot to True.

Browse files

In order for mergekit to be synced with the latest commit on the space, we have to set factory reboot to true, otherwise it uses the already cached version of mergekit prior to the restart

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -190,7 +190,7 @@ def merge(yaml_config: str, hf_token: str, repo_name: str) -> Iterable[List[Log]
190
 
191
  # This is workaround. As the space always getting stuck.
192
  def _restart_space():
193
- huggingface_hub.HfApi().restart_space(repo_id="arcee-ai/mergekit-gui", token=COMMUNITY_HF_TOKEN, factory_reboot=False)
194
  # Run garbage collection every hour to keep the community org clean.
195
  # Empty models might exists if the merge fails abruptly (e.g. if user leaves the Space).
196
  def _garbage_remover():
 
190
 
191
  # This is workaround. As the space always getting stuck.
192
  def _restart_space():
193
+ huggingface_hub.HfApi().restart_space(repo_id="arcee-ai/mergekit-gui", token=COMMUNITY_HF_TOKEN, factory_reboot=True)
194
  # Run garbage collection every hour to keep the community org clean.
195
  # Empty models might exists if the merge fails abruptly (e.g. if user leaves the Space).
196
  def _garbage_remover():