diff --git a/scripts/factory_restart_space.py b/scripts/factory_restart_space.py index 100bef06c..e9972e8cb 100644 --- a/scripts/factory_restart_space.py +++ b/scripts/factory_restart_space.py @@ -9,7 +9,7 @@ models = list_models() # Or configure a HfApi client hf_api = HfApi( endpoint="https://huggingface.co", # Can be a Private Hub endpoint. - token=os.getenv("HUGGINFACE_API_TOKEN") or "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", + token=os.getenv("HUGGINFACE_API_TOKEN"), ) space_runtime = hf_api.restart_space("Langflow/Langflow-Preview", factory_reboot=True)