Spaces:
Running
Running
File size: 1,039 Bytes
66a53df |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
import gradio as gr
from investigators.src.investigators.crew import Investigators
def investigate(target_name, affiliations):
inputs = {
'target': target_name,
'affiliations': affiliations,
# 'current_year': str(datetime.now().year)
}
try:
crew_output = Investigators().crew().kickoff(inputs=inputs)
except Exception as e:
raise Exception(f"An error occurred while running the crew: {e}")
return crew_output.raw
view = gr.Interface(
fn=investigate,
inputs=[
gr.Textbox(label="Target name:"),
gr.Textbox(label="Target Affiliations (comma separated):")],
outputs=[gr.Markdown(label="Risk Assessment Report:")],
flagging_mode="never",
examples=[
["Raz Nissim", "Ben Gurion University, General Motors"],
],
title="OSINT Investigator",
description="Enter the name of your target and their affiliations (to make search easier), and get a AML Risk assessment based on their public information.",)
view.launch(inbrowser=True)
|