debojit01's picture
Create app.py
cc06c26 verified
raw
history blame
278 Bytes
# app.py
import gradio as gr
from transformers import pipeline
detector = pipeline("text-classification", model="debojit01/fake-review-detector")
gr.Interface(
fn=lambda x: detector(x)[0],
inputs="text",
outputs="label",
title="Fake Review Detector"
).launch()