import gradio as gr
def welcome(name):
return f"Welcome to Gradio, {name}!"
with gr.Blocks() as demo:
gr.Markdown(
"""
# TITAN Project
Provide the GitHub repository link to retrieve the top x most potentially vulnerable functions.
""")
inp = gr.Textbox(placeholder="e.g., https://github.com/TitanCAProject/JIT-Vul-manualcheck", label="GitHub Repo Link")
age_box = gr.Number(label="Top suspicious functions", minimum=3, maximum=100)
submit_btn = gr.Button("Submit")
out = gr.Textbox(label="Results")
inp.change(welcome, inp, out)
demo.launch()
from skimage.color import rgb2gray
def as_gray(image):
return rgb2gray(image)
# Same syntax as requirements.txt
scikit-image