Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,30 @@ import cv2
|
|
41 |
import gradio as gr
|
42 |
import tempfile # Added for use in create_clip
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
# Initialize Kokoro TTS pipeline
|
45 |
pipeline = KPipeline(lang_code='a') # 'a' is from original code; adjust if needed
|
46 |
|
|
|
41 |
import gradio as gr
|
42 |
import tempfile # Added for use in create_clip
|
43 |
|
44 |
+
|
45 |
+
|
46 |
+
|
47 |
+
|
48 |
+
|
49 |
+
|
50 |
+
|
51 |
+
|
52 |
+
|
53 |
+
|
54 |
+
import subprocess
|
55 |
+
print(subprocess.check_output(['pip', 'list']).decode())
|
56 |
+
|
57 |
+
|
58 |
+
try:
|
59 |
+
import moviepy.editor
|
60 |
+
print("moviepy imported successfully")
|
61 |
+
except ImportError as e:
|
62 |
+
print("Error importing moviepy:", e)
|
63 |
+
|
64 |
+
|
65 |
+
|
66 |
+
|
67 |
+
|
68 |
# Initialize Kokoro TTS pipeline
|
69 |
pipeline = KPipeline(lang_code='a') # 'a' is from original code; adjust if needed
|
70 |
|