Ark-kun commited on
Commit
b419502
·
1 Parent(s): 7c5d028

fix: Use correct namespace in launcher

Browse files
huggingface_overlay/start_HuggingFace.py CHANGED
@@ -43,19 +43,6 @@ artifacts_root_uri = os.environ.get("DATA_DIR_URI")
43
  logs_root_uri = artifacts_root_uri
44
  # endregion
45
 
46
- # region: Launcher configuration
47
- from cloud_pipelines_backend.launchers import huggingface_launchers
48
-
49
- # Requires HF_TOKEN
50
- launcher = huggingface_launchers.HuggingFaceJobsContainerLauncher()
51
-
52
- # endregion
53
-
54
- # region: Orchestrator configuration
55
- default_task_annotations = {}
56
- sleep_seconds_between_queue_sweeps: float = 5.0
57
- # endregion
58
-
59
  # region: Authentication configuration
60
  import fastapi
61
 
@@ -367,6 +354,22 @@ db_engine = database_ops.create_db_engine(
367
  # endregion
368
 
369
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  # region: Orchestrator initialization
371
 
372
  import logging
 
43
  logs_root_uri = artifacts_root_uri
44
  # endregion
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  # region: Authentication configuration
47
  import fastapi
48
 
 
354
  # endregion
355
 
356
 
357
+ # region: Launcher configuration
358
+ from cloud_pipelines_backend.launchers import huggingface_launchers
359
+
360
+ # Requires HF_TOKEN
361
+ launcher = huggingface_launchers.HuggingFaceJobsContainerLauncher(
362
+ namespace=hf_space_author_name
363
+ )
364
+ # endregion
365
+
366
+
367
+ # region: Orchestrator configuration
368
+ default_task_annotations = {}
369
+ sleep_seconds_between_queue_sweeps: float = 5.0
370
+ # endregion
371
+
372
+
373
  # region: Orchestrator initialization
374
 
375
  import logging