nikigoli commited on
Commit
fb6090a
1 Parent(s): 6cc48e0

Improved permissions of startup.sh

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -24,8 +24,10 @@ import os
24
  os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
25
 
26
  # Installing dependencies not in requirements.txt
27
- import subprocess
28
- rc = subprocess.call("./startup.sh")
 
 
29
 
30
  class AppSteps(Enum):
31
  JUST_TEXT = 1
 
24
  os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
25
 
26
  # Installing dependencies not in requirements.txt
27
+ from subprocess import call
28
+ with open('./startup.sh', 'rb') as file:
29
+ script = file.read()
30
+ rc = call(script, shell=True)
31
 
32
  class AppSteps(Enum):
33
  JUST_TEXT = 1