Spaces:
Runtime error
Runtime error
Sourcing in env.
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import subprocess
|
| 3 |
-
import tokenizers
|
| 4 |
|
| 5 |
|
| 6 |
print("Getting rustup")
|
|
@@ -10,12 +9,15 @@ subprocess.run(
|
|
| 10 |
)
|
| 11 |
print("Got rustup")
|
| 12 |
subprocess.run("rustc --version", shell=True)
|
|
|
|
| 13 |
subprocess.run("pip install -U pip", shell=True)
|
| 14 |
subprocess.run(
|
| 15 |
"pip install -e git+https://github.com/huggingface/tokenizers/#egg=tokenizers\&subdirectory=bindings/python",
|
| 16 |
shell=True,
|
| 17 |
)
|
| 18 |
|
|
|
|
|
|
|
| 19 |
|
| 20 |
def greet(name):
|
| 21 |
return "Hello " + name + "!!" + tokenizers.__version__
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import subprocess
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
print("Getting rustup")
|
|
|
|
| 9 |
)
|
| 10 |
print("Got rustup")
|
| 11 |
subprocess.run("rustc --version", shell=True)
|
| 12 |
+
subprocess.run("source $HOME/.cargo/env", shell=True)
|
| 13 |
subprocess.run("pip install -U pip", shell=True)
|
| 14 |
subprocess.run(
|
| 15 |
"pip install -e git+https://github.com/huggingface/tokenizers/#egg=tokenizers\&subdirectory=bindings/python",
|
| 16 |
shell=True,
|
| 17 |
)
|
| 18 |
|
| 19 |
+
import tokenizers
|
| 20 |
+
|
| 21 |
|
| 22 |
def greet(name):
|
| 23 |
return "Hello " + name + "!!" + tokenizers.__version__
|