Polo123 commited on
Commit
21f0f11
1 Parent(s): d4d5227

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -26,8 +26,10 @@ user_id = int(round(user_id))
26
 
27
  # get recommendation and graph
28
 
29
- html = make_1_hop_graph(data,user_id)
30
- components.html(html, height=1200, width=1000)
 
 
31
 
32
  ans = get_recommendation(model,data,user_id)
33
  st.write(ans)
 
26
 
27
  # get recommendation and graph
28
 
29
+ make_1_hop_graph(data,user_id)
30
+ HtmlFile1 = open('index.html', 'r', encoding='utf-8')
31
+ source_code1 = HtmlFile1.read()
32
+ components.html(source_code1, height=1200, width=1000)
33
 
34
  ans = get_recommendation(model,data,user_id)
35
  st.write(ans)