File size: 277 Bytes
af76cb7
 
13cba8b
 
af76cb7
13cba8b
 
 
 
af76cb7
1
2
3
4
5
6
7
8
9
10
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()