| import gradio as gr | |
| from huggingface_hub import hf_hub_download | |
| # Specify the model you want to use | |
| model_id = "Canstralian/CySec_Known_Exploit_Analyzer" | |
| # Assuming the model is a pipeline or has an interface, you can load it like this: | |
| # (This might need adjustment depending on the exact model type) | |
| # Load the model and interface from Hugging Face Hub | |
| model = gr.Interface.load(f"huggingface/{model_id}") | |
| # Launch the Gradio interface | |
| model.launch() | |