rica's picture
Update app.py
67a650b
raw
history blame
No virus
411 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline(task="text-classification",
model="mrm8488/codebert-base-finetuned-detect-insecure-code")
gr.Interface.from_pipeline(pipe,
title="Insecure Code Detector",
description="Label 1 for insecure code",
allow_flagging="never").launch(inbrowser=True)