rmdhirr commited on
Commit
aa2c611
1 Parent(s): 0d284b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -85,19 +85,19 @@ def predict_phishing(url, html):
85
  interface = gr.Interface(
86
  fn=predict_phishing,
87
  inputs=[
88
- gr.inputs.Textbox(label="URL"),
89
- gr.inputs.Textbox(label="HTML Snippet", lines=10, placeholder="Paste HTML content here")
90
  ],
91
  outputs=[
92
- gr.outputs.Textbox(label="Predicted Category"),
93
- gr.outputs.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 Ramadhirra"
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