Spaces:
Runtime error
Runtime error
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() | |