Spaces:
Sleeping
Sleeping
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() | |