Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,25 +59,11 @@ if uploaded_zip_file is not None:
|
|
59 |
|
60 |
if st.button("Analyze"):
|
61 |
|
62 |
-
command = "chmod +x install.sh"
|
63 |
-
try:
|
64 |
-
subprocess.run(command, shell=True, check=True)
|
65 |
-
print("Script 'install.sh' has been made executable.")
|
66 |
-
except subprocess.CalledProcessError as e:
|
67 |
-
print(f"Error while making the script executable: {e}")
|
68 |
-
|
69 |
-
command = "./install.sh"
|
70 |
-
try:
|
71 |
-
subprocess.run(command, shell=True, check=True)
|
72 |
-
print("Script 'install.sh' has started running.")
|
73 |
-
except subprocess.CalledProcessError as e:
|
74 |
-
print(f"Error while running the script: {e}")
|
75 |
-
|
76 |
subprocess_executed = True
|
77 |
|
78 |
if subprocess_executed:
|
79 |
|
80 |
-
command = "chmod +x
|
81 |
|
82 |
try:
|
83 |
subprocess.run(command, shell=True, check=True)
|
@@ -85,7 +71,7 @@ if st.button("Analyze"):
|
|
85 |
except subprocess.CalledProcessError as e:
|
86 |
print(f"Error while making the script executable: {e}")
|
87 |
|
88 |
-
command = "./
|
89 |
|
90 |
try:
|
91 |
subprocess.run(command, shell=True, check=True)
|
|
|
59 |
|
60 |
if st.button("Analyze"):
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
subprocess_executed = True
|
63 |
|
64 |
if subprocess_executed:
|
65 |
|
66 |
+
command = "chmod +x install.sh"
|
67 |
|
68 |
try:
|
69 |
subprocess.run(command, shell=True, check=True)
|
|
|
71 |
except subprocess.CalledProcessError as e:
|
72 |
print(f"Error while making the script executable: {e}")
|
73 |
|
74 |
+
command = "./install.sh"
|
75 |
|
76 |
try:
|
77 |
subprocess.run(command, shell=True, check=True)
|