Pushkar2002's picture
Update app.py
3e8513e
raw
history blame contribute delete
263 Bytes
import gradio as gr
from transformers import pipeline
def predict(inp):
classifier = pipeline("sentiment-analysis",model="BERT")
return classifier(inp);
iface = gr.Interface(
fn=predict,
inputs="text",
outputs="text"
)
iface.launch()