Spaces:
Running
on
A100
Running
on
A100
Set factory_reboot to True.
Browse filesIn 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
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=
|
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():
|