File size: 278 Bytes
cc06c26
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
# 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()