Spaces:
Sleeping
Sleeping
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( | |
""" | |
<p align=center> | |
<br> | |
<a href="https://sherlock-project.github.io/" target="_blank"><img src="https://github.com/sherlock-project/sherlock/blob/master/docs/images/sherlock-logo.png?raw=true"/></a> | |
<br> | |
<span>Hunt down social media accounts by username across <a href="https://sherlockproject.xyz/sites">400+ social networks</a></span> | |
<br> | |
</p> | |
""" | |
) | |
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() | |