Spaces:
Runtime error
Runtime error
import gradio as gr | |
from transformers import AutoTokenizer | |
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased") | |
sequence = "In a hole in the ground there lived a hobbit." | |
res = tokenizer(sequence) | |
def greet(name): | |
return "Hello " + name + "!!" | |
iface = gr.Interface(fn=greet, inputs="text", outputs=res) | |
iface.launch() | |