Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,19 @@
|
|
1 |
import streamlit as st
|
2 |
from logic import *
|
3 |
|
4 |
-
st.title('ArangoDB - PyG')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import streamlit as st
|
2 |
from logic import *
|
3 |
|
4 |
+
st.title('ArangoDB - PyG')
|
5 |
+
|
6 |
+
|
7 |
+
#---------------------
|
8 |
+
st.write('Making Graph')
|
9 |
+
movie_mappings, user_mapping, ratings_df, m_id, id_map, sampled_md = make_graph()
|
10 |
+
st.write('Login to ArangoDB')
|
11 |
+
login = login_ArangoDB()
|
12 |
+
st.write('Loading Graph to ArangoDB')
|
13 |
+
movie_rec_db = load_data_to_ArangoDB(login)
|
14 |
+
st.write('Making PyG graph from ArangoDB')
|
15 |
+
train_data, val_data, test_data = make_pyg_graph(movie_rec_db)
|
16 |
+
st.write('training graph')
|
17 |
+
train(train_data, val_data, test_data)
|
18 |
+
|
19 |
+
#---------------------
|