Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from PIL.ImageOps import colorize, scale
|
2 |
import gradio as gr
|
3 |
import importlib
|
|
|
1 |
+
################## My code
|
2 |
+
import subprocess
|
3 |
+
|
4 |
+
"""Replace with the correct path to your install.sh script"""
|
5 |
+
install_script_path = "script/install.sh"
|
6 |
+
|
7 |
+
"""Run the shell command"""
|
8 |
+
subprocess.run(["bash", install_script_path])
|
9 |
+
|
10 |
+
##################
|
11 |
from PIL.ImageOps import colorize, scale
|
12 |
import gradio as gr
|
13 |
import importlib
|