fffiloni commited on
Commit
159fc7a
·
verified ·
1 Parent(s): e14e03b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -1,8 +1,22 @@
1
  import gradio as gr
2
- import subprocess
3
  from moviepy.editor import VideoFileClip
4
  import datetime
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  def convert_to_mp4_with_aac(input_path, output_path):
7
  # Load the video
8
  video = VideoFileClip(input_path)
 
1
  import gradio as gr
 
2
  from moviepy.editor import VideoFileClip
3
  import datetime
4
 
5
+ import subprocess
6
+ import sys
7
+
8
+ def install_dlib():
9
+ try:
10
+ subprocess.run(
11
+ [sys.executable, "-m", "pip", "install", "--no-cache-dir", "dlib==19.24.1", "-vvv"],
12
+ check=True
13
+ )
14
+ print("dlib successfully installed!")
15
+ except subprocess.CalledProcessError as e:
16
+ print(f"Failed to install dlib: {e}")
17
+
18
+ install_dlib()
19
+
20
  def convert_to_mp4_with_aac(input_path, output_path):
21
  # Load the video
22
  video = VideoFileClip(input_path)