icd10-testkemal / app.py
erojuns's picture
Update app.py
3ead94e
raw
history blame contribute delete
168 Bytes
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)