Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,19 +85,19 @@ def predict_phishing(url, html):
|
|
85 |
interface = gr.Interface(
|
86 |
fn=predict_phishing,
|
87 |
inputs=[
|
88 |
-
gr.
|
89 |
-
gr.
|
90 |
],
|
91 |
outputs=[
|
92 |
-
gr.
|
93 |
-
gr.
|
94 |
],
|
95 |
title="Phishing Detection Model",
|
96 |
description="Enter a URL and its HTML content to predict if it's spam or legitimate. It's recommended to provide both for accurate results.",
|
97 |
theme="huggingface",
|
98 |
live=True,
|
99 |
css=".interface-container { border: 2px solid #4CAF50; border-radius: 10px; padding: 20px; }",
|
100 |
-
footer="Made with ❤️ by
|
101 |
)
|
102 |
|
103 |
# Launch the Gradio interface
|
|
|
85 |
interface = gr.Interface(
|
86 |
fn=predict_phishing,
|
87 |
inputs=[
|
88 |
+
gr.components.Textbox(label="URL"),
|
89 |
+
gr.components.Textbox(label="HTML Snippet", lines=10, placeholder="Paste HTML content here")
|
90 |
],
|
91 |
outputs=[
|
92 |
+
gr.components.Textbox(label="Predicted Category"),
|
93 |
+
gr.components.Textbox(label="Predicted Probability")
|
94 |
],
|
95 |
title="Phishing Detection Model",
|
96 |
description="Enter a URL and its HTML content to predict if it's spam or legitimate. It's recommended to provide both for accurate results.",
|
97 |
theme="huggingface",
|
98 |
live=True,
|
99 |
css=".interface-container { border: 2px solid #4CAF50; border-radius: 10px; padding: 20px; }",
|
100 |
+
footer="Made with ❤️ by Your Team"
|
101 |
)
|
102 |
|
103 |
# Launch the Gradio interface
|