infinity1096 commited on
Commit
1b3abf3
·
1 Parent(s): 94dea5c

add pip install -e script

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -9,10 +9,14 @@ import sys
9
  import subprocess
10
 
11
  try:
12
- subprocess.check_call(["/bin/bash", "/install_package.sh"])
13
- except subprocess.CalledProcessError as e:
14
- print(f"Script failed with return code {e.returncode}", file=sys.stderr)
15
- sys.exit(e.returncode)
 
 
 
 
16
 
17
 
18
  from uniflowmatch.models.ufm import (
 
9
  import subprocess
10
 
11
  try:
12
+ import uniception
13
+ import uniflowmatch
14
+ except:
15
+ try:
16
+ subprocess.check_call(["/bin/bash", "/home/user/app/install_package.sh"])
17
+ except subprocess.CalledProcessError as e:
18
+ print(f"Script failed with return code {e.returncode}", file=sys.stderr)
19
+ sys.exit(e.returncode)
20
 
21
 
22
  from uniflowmatch.models.ufm import (