zyliu commited on
Commit
966d74c
1 Parent(s): 86110fa

update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -6,6 +6,12 @@ import signal
6
  import subprocess
7
  import atexit
8
 
 
 
 
 
 
 
9
 
10
  def kill_processes_by_cmd_substring(cmd_substring):
11
  # execute `ps -ef` and obtain its output
 
6
  import subprocess
7
  import atexit
8
 
9
+ try:
10
+ import flash_attn
11
+ except ImportError:
12
+ os.system("pip install flash-attn==2.5.9.post1")
13
+ import flash_attn
14
+
15
 
16
  def kill_processes_by_cmd_substring(cmd_substring):
17
  # execute `ps -ef` and obtain its output