import gradio as gr import subprocess def search(name): return subprocess.run( f"sherlock --print-found {name}", shell=True, capture_output=True, text=True ).stdout with gr.Blocks() as demo: gr.HTML( """



Hunt down social media accounts by username across 400+ social networks

""" ) inp = gr.Textbox(placeholder="Search for a username?") out = gr.Textbox() btn = gr.Button("Search") btn.click(fn=search, inputs=inp, outputs=out) if __name__ == "__main__": demo.launch()