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