File size: 234 Bytes
8f00945 |
1 2 3 4 5 6 7 8 9 10 |
import gradio as gr
import transformers
from transformers import pipeline
generator=pipeline("text-generation')
def greet(name):
return generator(name)
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch() |