translators-will commited on
Commit
09df9bf
·
verified ·
1 Parent(s): e601c20

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -9,6 +9,13 @@ import subprocess
9
  import shutil
10
  from timeit import default_timer as timer
11
 
 
 
 
 
 
 
 
12
  # Load environment variables
13
 
14
  load_dotenv()
 
9
  import shutil
10
  from timeit import default_timer as timer
11
 
12
+ def install_rust():
13
+ subprocess.run("curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y", shell=True)
14
+ subprocess.run("source $HOME/.cargo/env", shell=True)
15
+
16
+ # Call this before your main application logic
17
+ install_rust()
18
+
19
  # Load environment variables
20
 
21
  load_dotenv()