Spaces:
Sleeping
Sleeping
import gradio as gr | |
from transformers import pipeline | |
def greet(name): | |
generator = pipeline("text-generation") | |
return generator(name) | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
iface.launch() |