Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from transformers import pipeline | |
| classifier = pipeline('text-classification', model='el-filatova/clasificador-tweet-sentiment') | |
| def predict(text): | |
| return classifier(text) | |
| iface = gr.Interface(fn=predict, inputs="text", outputs="text") | |
| iface.launch() |