Spaces:
Running
on
T4
Running
on
T4
Improved permissions of startup.sh
Browse files
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
|
| 28 |
-
|
|
|
|
|
|
|
| 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
|