hindi_chat / chat.py
mahek jasani
Create chat.py
3a1ec7e verified
raw
history blame
280 Bytes
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)