Delete app.py
Browse files
app.py
DELETED
|
@@ -1,83 +0,0 @@
|
|
| 1 |
-
'''
|
| 2 |
-
Author : Rupesh Garsondiya
|
| 3 |
-
github : @Rupeshgarsondiya
|
| 4 |
-
Organization : L.J University
|
| 5 |
-
'''
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
import http
|
| 11 |
-
import streamlit as st
|
| 12 |
-
from PIL import Image
|
| 13 |
-
from train import *
|
| 14 |
-
from test import *
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
# Centering the title using HTML and CSS
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
class Main:
|
| 22 |
-
def __init__(self) -> None:
|
| 23 |
-
pass
|
| 24 |
-
|
| 25 |
-
def run(self):
|
| 26 |
-
|
| 27 |
-
# Display the image from a URL
|
| 28 |
-
st.markdown(
|
| 29 |
-
"""
|
| 30 |
-
<style>
|
| 31 |
-
.img-rounded {
|
| 32 |
-
border-radius: 15px;
|
| 33 |
-
width: 400px; /* Adjust the width as needed */
|
| 34 |
-
}
|
| 35 |
-
|
| 36 |
-
</style>
|
| 37 |
-
<div style="text-align: center;">
|
| 38 |
-
<img src="https://files.oaiusercontent.com/file-j5d0noa13fNCzctwMzacm7k9?se=2024-10-15T17%3A31%3A03Z&sp=r&sv=2024-08-04&sr=b&rscc=max-age%3D604800%2C%20immutable%2C%20private&rscd=attachment%3B%20filename%3D393b3cd9-2488-4f60-a1d7-52fe26428c8f.webp&sig=JSGn0KwxflHJ9MPWGzjpDn%2BzUTJxnMrSN2%2BrrTMhoLg%3D" class="img-rounded",><br>
|
| 39 |
-
|
| 40 |
-
""",
|
| 41 |
-
unsafe_allow_html=True
|
| 42 |
-
)
|
| 43 |
-
st.write()
|
| 44 |
-
st.write()
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
t = test()
|
| 48 |
-
t.predict_data()
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
st.markdown("[GitHub](https://github.com/Rupeshgarsondiya/Project-1) | <a href='https://www.linkedin.com/in/rupesh-garsondiya-919817275/' target='_blank'>Linkedin</a>",unsafe_allow_html=True)
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
# Add a LinkedIn profile hyperlink using HTML
|
| 55 |
-
st.markdown("", unsafe_allow_html=True)
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
# Add copyright notice at the bottom
|
| 61 |
-
st.markdown("<hr>", unsafe_allow_html=True) # Horizontal line to separate content
|
| 62 |
-
st.markdown(
|
| 63 |
-
"<b><p style='text-align: center; font-size: 12px;'>© 2024 Rupesh Garsondiya. All Rights Reserved.</p>",
|
| 64 |
-
unsafe_allow_html=True
|
| 65 |
-
)
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
if __name__ == "__main__":
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
st.markdown("<h1 style='text-align: center;'><b>User behaviour classification on user Behaviour Dataset</b></h1>", unsafe_allow_html=True)
|
| 73 |
-
|
| 74 |
-
st.markdown("<p ><b> - About this project :</b></p>",unsafe_allow_html=True)
|
| 75 |
-
st.write(' - This project is a simple web application that uses a machine learning model to classify user behavior into different categories.')
|
| 76 |
-
|
| 77 |
-
st.write(' - The model is trained on a dataset of user behavior and can be used to predict the behavior of a new user based on their mobile data.')
|
| 78 |
-
|
| 79 |
-
run_obj = Main()
|
| 80 |
-
run_obj.run()
|
| 81 |
-
|
| 82 |
-
else :
|
| 83 |
-
print("This is a Streamlit app. Please run it using `streamlit run app.py `") # noqa: E501
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|