Spaces:
Runtime error
Runtime error
Hack hack hack.
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ from importlib import import_module
|
|
| 7 |
|
| 8 |
print("Getting rustup")
|
| 9 |
subprocess.run(
|
| 10 |
-
"
|
| 11 |
shell=True,
|
| 12 |
)
|
| 13 |
print("Got rustup")
|
|
@@ -20,8 +20,12 @@ subprocess.run(
|
|
| 20 |
shell=True,
|
| 21 |
env=myenv,
|
| 22 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 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):
|