akia1996 commited on
Commit
a760dcb
·
verified ·
1 Parent(s): ec8483d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py CHANGED
@@ -87,6 +87,27 @@ def generate_matrix_video(input_image, num_frames, seed, use_streaming):
87
  else:
88
  log.append(f"⚠️ Requirements warning (continuing): {req_result.stderr[:200]}")
89
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  # Step 4: python setup.py develop (official workflow)
91
  log.append("\n🔧 **STEP 4: python setup.py develop**")
92
 
 
87
  else:
88
  log.append(f"⚠️ Requirements warning (continuing): {req_result.stderr[:200]}")
89
 
90
+ # Step 3.5: Install missing critical dependencies
91
+ log.append("\n🔧 **STEP 3.5: Install missing dependencies**")
92
+
93
+ critical_deps = [
94
+ "omegaconf", "einops", "transformers", "accelerate",
95
+ "diffusers", "opencv-python", "imageio", "imageio-ffmpeg"
96
+ ]
97
+
98
+ for dep in critical_deps:
99
+ try:
100
+ dep_result = subprocess.run([
101
+ sys.executable, "-m", "pip", "install", dep, "--no-cache-dir"
102
+ ], capture_output=True, text=True, timeout=120)
103
+
104
+ if dep_result.returncode == 0:
105
+ log.append(f"✅ {dep} installed")
106
+ else:
107
+ log.append(f"⚠️ {dep} warning: {dep_result.stderr[:100]}")
108
+ except Exception as e:
109
+ log.append(f"⚠️ {dep} error: {str(e)[:100]}")
110
+
111
  # Step 4: python setup.py develop (official workflow)
112
  log.append("\n🔧 **STEP 4: python setup.py develop**")
113