3ead94e ca11d15 3ead94e
1
2
3
4
5
6
7
8
9
10
import gradio as gr from transformers input pipeline pipe = pipeline('sentiment-analysis') text = gr.text_area('test') if text: out = pipe(text) gr.json(out)