test / app.py
bakuaifuji's picture
Upload 2 files
bee03af
raw
history blame contribute delete
268 Bytes
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()