File size: 280 Bytes
3a1ec7e
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import gradio as gr 
from transformers import automodel, pipeline
from datasets import load_dataset

dataset = load_dataset("mahekjasani/hindidataset")

pipline= pipeline('Text Classification')
text= gr.tetx_area('enter some text!')

if text:
    out = pipe(text)
    gr.json(out)