rmdhirr commited on
Commit
2e2cbdb
·
verified ·
1 Parent(s): ae55cec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -9
app.py CHANGED
@@ -92,17 +92,26 @@ interface = gr.Interface(
92
  gr.components.Textbox(label="Predicted Category"),
93
  gr.components.Textbox(label="Predicted Probability")
94
  ],
95
- title="Web Phishing Detection",
96
- description="""
97
- Enter a URL and its HTML content to predict if it's spam or legitimate. It's recommended to provide both for accurate results.
98
- <br><br>
99
- Made with ❤️ by Ramadhirra<br>
100
- Model by Ramadhirra<br>
101
- WebUI by Ramadhirra
102
- """,
103
  live=True,
104
  css=".interface-container { border: 2px solid #4CAF50; border-radius: 10px; padding: 20px; }"
105
  )
106
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  # Launch the Gradio interface
108
- interface.launch()
 
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
  live=True,
98
  css=".interface-container { border: 2px solid #4CAF50; border-radius: 10px; padding: 20px; }"
99
  )
100
 
101
+ # Footer text
102
+ footer = gr.Markdown("""
103
+ ---
104
+ Made with ❤️ by Ramadhirra<br>
105
+ Model by Ramadhirra<br>
106
+ WebUI by Ramadhirra
107
+ """)
108
+
109
+ # Combine the interface and footer
110
+ app = gr.Blocks()
111
+
112
+ with app:
113
+ interface.render()
114
+ footer.render()
115
+
116
  # Launch the Gradio interface
117
+ app.launch()