StefanoBergia commited on
Commit
ab393e6
·
1 Parent(s): 38a574e

fix lfs utf 8

Browse files
Files changed (1) hide show
  1. enhanced_app.py +4 -4
enhanced_app.py CHANGED
@@ -62,21 +62,21 @@ OUTPUT_DIR = Path("outputs")
62
 
63
  def fix_lfs_on_startup():
64
  """Quick fix for LFS issues on HuggingFace startup."""
65
- print("������ Checking for LFS issues...")
66
 
67
  try:
68
  # Try to pull LFS files
69
  result = subprocess.run(['git', 'lfs', 'pull'],
70
  capture_output=True, text=True, timeout=30)
71
  if result.returncode == 0:
72
- print("LFS files pulled successfully")
73
  else:
74
- print(f"⚠️ LFS pull failed: {result.stderr}")
75
  # Try checkout instead
76
  subprocess.run(['git', 'lfs', 'checkout'],
77
  capture_output=True, timeout=20)
78
  except Exception as e:
79
- print(f"⚠️ LFS operations failed: {e}")
80
 
81
  # =============================================================================
82
  # Model Base Classes and Configurations
 
62
 
63
  def fix_lfs_on_startup():
64
  """Quick fix for LFS issues on HuggingFace startup."""
65
+ print("Checking for LFS issues...")
66
 
67
  try:
68
  # Try to pull LFS files
69
  result = subprocess.run(['git', 'lfs', 'pull'],
70
  capture_output=True, text=True, timeout=30)
71
  if result.returncode == 0:
72
+ print("LFS files pulled successfully")
73
  else:
74
+ print(f"LFS pull failed: {result.stderr}")
75
  # Try checkout instead
76
  subprocess.run(['git', 'lfs', 'checkout'],
77
  capture_output=True, timeout=20)
78
  except Exception as e:
79
+ print(f"LFS operations failed: {e}")
80
 
81
  # =============================================================================
82
  # Model Base Classes and Configurations