| | import gradio as gr |
| | from transformers import pipeline |
| |
|
| | |
| | model_id = "Canstralian/CySec_Known_Exploit_Analyzer" |
| |
|
| | |
| | analyzer = pipeline("text-classification", model=model_id) |
| |
|
| | |
| | def analyze_exploit(text): |
| | result = analyzer(text) |
| | return result |
| |
|
| | |
| | interface = gr.Interface( |
| | fn=analyze_exploit, |
| | inputs=gr.Textbox(lines=2, placeholder="Enter exploit description..."), |
| | outputs="json", |
| | title="CySec Known Exploit Analyzer", |
| | description="Analyze known cybersecurity exploits using a Hugging Face model." |
| | ) |
| |
|
| | |
| | interface.launch() |