[object Object]

← back to Exo

cleaing comments

e0be8dd54b887441363e0fddcb325c61ea2fe0cc · 2024-11-20 20:20:56 -0800 · josh

Files touched

Diff

commit e0be8dd54b887441363e0fddcb325c61ea2fe0cc
Author: josh <eyasufikru567@gmail.com>
Date:   Wed Nov 20 20:20:56 2024 -0800

    cleaing comments
---
 exo/download/hf/hf_helpers.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/exo/download/hf/hf_helpers.py b/exo/download/hf/hf_helpers.py
index a49eb563..93b565d6 100644
--- a/exo/download/hf/hf_helpers.py
+++ b/exo/download/hf/hf_helpers.py
@@ -109,12 +109,10 @@ def get_repo_root(repo_id: str) -> Path:
 async def move_models_to_hf(seed_dir: Union[str, Path]):
   """Move model in resources folder of app to .cache/huggingface/hub"""
   source_dir = AsyncPath(seed_dir)
-  if DEBUG>=1: print("moving files")
   dest_dir = AsyncPath(get_hf_home()/"hub")
   await aios.makedirs(dest_dir, exist_ok=True)   
   async for path in source_dir.iterdir():
     if await path.is_dir() and path.name.startswith("models--"):
-      if DEBUG>=1: print("moving files")
       dest_path = dest_dir / path.name
       try:
         await aios.rename(str(path), str(dest_path))

← 5396f080 test clean ups  ·  back to Exo  ·  transformers version d600bd42 →