Spaces:
Runtime error
Runtime error
File size: 262 Bytes
2e6f78c |
1 2 3 4 5 6 7 8 9 10 |
import gradio as gr
from transformers import pipeline
clf = pipeline("sentiment-analysis", model="./outputs")
def classify(text):
return clf(text)[0]['label']
gr.Interface(fn=classify, inputs="text", outputs="text", title="Sentiment Classifier").launch()
|