Godota commited on
Commit
1a1c378
·
1 Parent(s): 345a182

subprocess

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -5,7 +5,8 @@ logging.getLogger("httpx").setLevel(logging.WARNING)
5
  # First, install flash-attention
6
  import subprocess
7
  import os
8
-
 
9
  # Install flash-attention with specific environment variable
10
  subprocess.run(
11
  "pip install flash-attn --no-build-isolation",
@@ -13,8 +14,6 @@ subprocess.run(
13
  shell=True,
14
  )
15
 
16
- subprocess.run("pip install moviepy", shell=True)
17
-
18
  from moviepy.editor import VideoFileClip
19
  import tempfile
20
  import gradio as gr
 
5
  # First, install flash-attention
6
  import subprocess
7
  import os
8
+ subprocess.run("pip install -q moviepy", shell=True)
9
+ subprocess.run("pip install -q imageio-ffmpeg", shell=True)
10
  # Install flash-attention with specific environment variable
11
  subprocess.run(
12
  "pip install flash-attn --no-build-isolation",
 
14
  shell=True,
15
  )
16
 
 
 
17
  from moviepy.editor import VideoFileClip
18
  import tempfile
19
  import gradio as gr