Update app.py
Browse files
app.py
CHANGED
@@ -24,9 +24,14 @@ model = load_model(data)
|
|
24 |
user_id = st.number_input('Give User-Id')
|
25 |
user_id = int(round(user_id))
|
26 |
|
27 |
-
# get recommendation
|
28 |
-
|
|
|
|
|
|
|
|
|
29 |
|
|
|
30 |
st.write(ans)
|
31 |
|
32 |
|
|
|
24 |
user_id = st.number_input('Give User-Id')
|
25 |
user_id = int(round(user_id))
|
26 |
|
27 |
+
# get recommendation and graph
|
28 |
+
|
29 |
+
make_1_hop_graph(data,user_id)
|
30 |
+
HtmlFile2 = open("index.html", 'r', encoding='utf-8')
|
31 |
+
source_code2 = HtmlFile2.read()
|
32 |
+
components.html(source_code2, width=700, height=700)
|
33 |
|
34 |
+
ans = get_recommendation(model,data,user_id)
|
35 |
st.write(ans)
|
36 |
|
37 |
|