Spaces:
Runtime error
Runtime error
Canstralian
commited on
Commit
•
6b3f7e8
1
Parent(s):
cbd5952
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,14 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
+
from huggingface_hub import hf_hub_download
|
3 |
|
4 |
+
# Specify the model you want to use
|
5 |
+
model_id = "Canstralian/CySec_Known_Exploit_Analyzer"
|
6 |
+
|
7 |
+
# Assuming the model is a pipeline or has an interface, you can load it like this:
|
8 |
+
# (This might need adjustment depending on the exact model type)
|
9 |
+
|
10 |
+
# Load the model and interface from Hugging Face Hub
|
11 |
+
model = gr.Interface.load(f"huggingface/{model_id}")
|
12 |
+
|
13 |
+
# Launch the Gradio interface
|
14 |
+
model.launch()
|