Spaces:
Sleeping
Sleeping
shubhendu-ghosh
commited on
Commit
•
e87604c
1
Parent(s):
928ae37
Update app.py
Browse files
app.py
CHANGED
@@ -4,35 +4,6 @@ import streamlit.components.v1 as components
|
|
4 |
import pandas
|
5 |
|
6 |
|
7 |
-
footer="""<style>
|
8 |
-
a:link , a:visited{
|
9 |
-
color: blue;
|
10 |
-
background-color: transparent;
|
11 |
-
text-decoration: underline;
|
12 |
-
}
|
13 |
-
|
14 |
-
a:hover, a:active {
|
15 |
-
color: red;
|
16 |
-
background-color: transparent;
|
17 |
-
text-decoration: underline;
|
18 |
-
}
|
19 |
-
|
20 |
-
.footer {
|
21 |
-
position: fixed;
|
22 |
-
left: 0;
|
23 |
-
bottom: 0;
|
24 |
-
width: 100%;
|
25 |
-
color: black;
|
26 |
-
text-align: center;
|
27 |
-
}
|
28 |
-
</style>
|
29 |
-
<div class="footer">
|
30 |
-
<p><a style='display: block; text-align: center;' href="https://www.linkedin.com/in/shubhendu-ghosh-423092205/" target="_blank">Developer</a></p>
|
31 |
-
</div>
|
32 |
-
"""
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
def recommend(movie):
|
37 |
index = movies[movies['title'] == movie].index[0]
|
38 |
distances = sorted(list(enumerate(similarity[index])),reverse=True,key = lambda x: x[1])
|
@@ -131,10 +102,6 @@ if st.button("show movies"):
|
|
131 |
link = "[List of movies]("+ suggest(selected_genre)+")"
|
132 |
st.markdown(link, unsafe_allow_html=True)
|
133 |
|
134 |
-
st.markdown(footer,unsafe_allow_html=True)
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
|
139 |
|
140 |
|
|
|
4 |
import pandas
|
5 |
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
def recommend(movie):
|
8 |
index = movies[movies['title'] == movie].index[0]
|
9 |
distances = sorted(list(enumerate(similarity[index])),reverse=True,key = lambda x: x[1])
|
|
|
102 |
link = "[List of movies]("+ suggest(selected_genre)+")"
|
103 |
st.markdown(link, unsafe_allow_html=True)
|
104 |
|
|
|
|
|
|
|
|
|
105 |
|
106 |
|
107 |
|