File size: 268 Bytes
bee03af |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from transformers import pipeline
import gradio as gr
def hello(i):
# classifier = pipeline("sentiment-analysis")
# a = classifier(i)
# return a
return "Hello World! " + i
iface = gr.Interface(fn=hello, inputs="text", outputs="text")
iface.launch()
|