AdritRao commited on
Commit
1e635ad
1 Parent(s): 6500348

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -50,6 +50,14 @@ if uploaded_zip_file is not None:
50
 
51
  st.write(f"Temporary directory path: {temp_dir}")
52
 
 
 
 
 
 
 
 
 
53
  with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
54
  zip_ref.extractall(temp_dir)
55
 
 
50
 
51
  st.write(f"Temporary directory path: {temp_dir}")
52
 
53
+ command = "./inference.sh"
54
+
55
+ try:
56
+ subprocess.run(command, shell=True, check=True)
57
+ print("Script 'inference.sh' has started running.")
58
+ except subprocess.CalledProcessError as e:
59
+ print(f"Error while making the script executable: {e}")
60
+
61
  with zipfile.ZipFile(uploaded_zip_file, "r") as zip_ref:
62
  zip_ref.extractall(temp_dir)
63