Felladrin pdufour commited on
Commit
6cbd7e2
·
verified ·
1 Parent(s): 1b48b29

Remove env variables subprocess call (#4)

Browse files

- Remove env variables subprocess call (b84549b7a222f73f7ae5b9af58f344cd5e09bdf4)
- Update app.py (b46b20773f7b2593086796794dbc1baba171d6ba)


Co-authored-by: Paul Dufour - coding @ Uber - open to work <[email protected]>

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -67,7 +67,7 @@ if input_model_id:
67
  with st.spinner("Converting model..."):
68
  output = subprocess.run(
69
  [
70
- "python",
71
  "-m",
72
  "scripts.convert",
73
  "--quantize",
@@ -77,6 +77,7 @@ if input_model_id:
77
  cwd=TRANSFORMERS_REPOSITORY_PATH,
78
  capture_output=True,
79
  text=True,
 
80
  )
81
 
82
  # Log the script output
 
67
  with st.spinner("Converting model..."):
68
  output = subprocess.run(
69
  [
70
+ sys.executable,
71
  "-m",
72
  "scripts.convert",
73
  "--quantize",
 
77
  cwd=TRANSFORMERS_REPOSITORY_PATH,
78
  capture_output=True,
79
  text=True,
80
+ env={},
81
  )
82
 
83
  # Log the script output