Narsil HF Staff commited on
Commit
5f7ce14
·
unverified ·
1 Parent(s): 99048eb

Hack hack hack.

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from importlib import import_module
7
 
8
  print("Getting rustup")
9
  subprocess.run(
10
- "cu" + "rl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y",
11
  shell=True,
12
  )
13
  print("Got rustup")
@@ -20,8 +20,12 @@ subprocess.run(
20
  shell=True,
21
  env=myenv,
22
  )
 
 
 
 
23
 
24
- tokenizers = import_module("tokenizers")
25
 
26
 
27
  def greet(name):
 
7
 
8
  print("Getting rustup")
9
  subprocess.run(
10
+ "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y",
11
  shell=True,
12
  )
13
  print("Got rustup")
 
20
  shell=True,
21
  env=myenv,
22
  )
23
+ sys.path.append(
24
+ os.path.join(os.getcwd(), "src", "tokenizers", "bindings", "python", "py_src")
25
+ )
26
+
27
 
28
+ import tokenizers
29
 
30
 
31
  def greet(name):