tokenizers / app.py
Narsil's picture
Narsil HF Staff
Install at runtime
8210474 unverified
raw
history blame
468 Bytes
import gradio as gr
import subprocess
subprocess.run(
"curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh", shell=True
)
subprocess.run("pip install -U pip", shell=True)
subprocess.run(
"pip install -e git+https://github.com/huggingface/tokenizers/#egg=tokenizers\&subdirectory=bindings/python",
shell=True,
)
def greet(name):
return "Hello " + name + "!!"
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()