Spaces:
Sleeping
Sleeping
File size: 269 Bytes
e8e9561 |
1 2 3 4 5 6 7 8 9 10 11 |
import gradio as gr
from transformers import pipeline
classifier = pipeline("text-classification", model="hasanmustafa0503/SentimentModel")
def predict(text):
return classifier(text)
iface = gr.Interface(fn=predict, inputs="text", outputs="json")
iface.launch()
|