Polo123 commited on
Commit
a3eccab
1 Parent(s): dd1e684

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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
- ans = get_recommendation(model,data,user_id)
 
 
 
 
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