Polo123 commited on
Commit
fa01a43
1 Parent(s): 4f0ec5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -2
app.py CHANGED
@@ -1,10 +1,29 @@
1
  import streamlit as st
2
- from logic import *
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
- st.title('ArangoDB - PyG')
5
 
6
 
7
  #---------------------
 
8
  st.write('Making Graph')
9
  global movie_mappings, user_mapping, ratings_df, m_id, id_map, sampled_md
10
  movie_mappings, user_mapping, ratings_df, m_id, id_map, sampled_md = make_graph()
@@ -24,4 +43,6 @@ model = load_model(train_data, val_data, test_data)
24
  user_id = st.number_input('Insert a number')
25
  ans = get_recommendation(model,data,user_id)
26
  st.write(ans)
 
27
  #---------------------
 
 
1
  import streamlit as st
2
+ from logic2 import *
3
+
4
+ st.title('PyG - Movie Recommendation')
5
+ st.image('Image_graph.png', caption='Bi-Partite Graph')
6
+ st.plotly_chart(fig, use_container_width=True)
7
+
8
+ # load Hgraph
9
+ data = load_hetero_data()
10
+
11
+ # Load Model
12
+ model = load_model(data)
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
 
 
23
 
24
 
25
  #---------------------
26
+ '''
27
  st.write('Making Graph')
28
  global movie_mappings, user_mapping, ratings_df, m_id, id_map, sampled_md
29
  movie_mappings, user_mapping, ratings_df, m_id, id_map, sampled_md = make_graph()
 
43
  user_id = st.number_input('Insert a number')
44
  ans = get_recommendation(model,data,user_id)
45
  st.write(ans)
46
+ '''
47
  #---------------------
48
+