new-space1 / app.py
vanidhan's picture
initial commit
207ef4d verified
raw
history blame contribute delete
238 Bytes
import gradio as gr
from transformers_js_py import pipeline
pipe = await pipeline('sentiment-analysis')
async def process(text):
return await pipe(text)
demo = gr.Interface(fn=process, inputs="text", outputs="json")
demo.launch()