AdritRao commited on
Commit
aa5f2c4
1 Parent(s): f104a79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -47,7 +47,13 @@ if uploaded_zip_file is not None:
47
  st.pyplot(plt)
48
 
49
  # Run the command
50
- command = f"aaa_web_app/tree/main/Comp2Comp-main/bin spine -i {temp_dir}"
 
 
 
 
 
 
51
  st.write("Running command:", command)
52
 
53
  progress_bar = st.progress(0) # Initialize the progress bar
 
47
  st.pyplot(plt)
48
 
49
  # Run the command
50
+ command = f"chmod +x Comp2Comp-main/bin/C2C"
51
+ st.write("Running command:", command)
52
+
53
+ progress_bar = st.progress(0) # Initialize the progress bar
54
+ process = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
55
+
56
+ command = f"Comp2Comp-main/bin/C2C spine -i {temp_dir}"
57
  st.write("Running command:", command)
58
 
59
  progress_bar = st.progress(0) # Initialize the progress bar