Spaces:
Sleeping
Sleeping
Commit
•
d914a39
1
Parent(s):
9184a71
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,9 @@ import streamlit as st
|
|
7 |
|
8 |
def get_POMFinder():
|
9 |
# Get file paths
|
10 |
-
load_files = "Backend/"
|
11 |
-
DataBase_path = "Backend/POMFinder_443structures_100Dataset_per_Structure_xPDF_hypercube_sampling_Grmax_Name.h5"
|
12 |
-
POMFinder_path = "Backend/XGBoost_443structures_100PDFperStructure_xPDF_hypercube_sampling_Grmax.model"
|
13 |
# Import the Database
|
14 |
hf_name = h5py.File(DataBase_path, "r")
|
15 |
y = hf_name.get('y')
|
@@ -88,7 +88,7 @@ def POMPredicter(POMFinder, Gr, y_onehotenc_cat):
|
|
88 |
|
89 |
|
90 |
st.title('POMFinder')
|
91 |
-
st.write('Welcome to POMFinder which is a tree-based supervised learning algorithm that can predict the polyoxometalate cluster from a Pair Distribution Function.
|
92 |
st.write('Upload a PDF to use POMFinder to predict the structure.')
|
93 |
|
94 |
# Define the file upload widget
|
|
|
7 |
|
8 |
def get_POMFinder():
|
9 |
# Get file paths
|
10 |
+
load_files = "Backend/"
|
11 |
+
DataBase_path = "Backend/POMFinder_443structures_100Dataset_per_Structure_xPDF_hypercube_sampling_Grmax_Name.h5"
|
12 |
+
POMFinder_path = "Backend/XGBoost_443structures_100PDFperStructure_xPDF_hypercube_sampling_Grmax.model"
|
13 |
# Import the Database
|
14 |
hf_name = h5py.File(DataBase_path, "r")
|
15 |
y = hf_name.get('y')
|
|
|
88 |
|
89 |
|
90 |
st.title('POMFinder')
|
91 |
+
st.write('Welcome to POMFinder which is a tree-based supervised learning algorithm that can predict the polyoxometalate cluster from a Pair Distribution Function.')
|
92 |
st.write('Upload a PDF to use POMFinder to predict the structure.')
|
93 |
|
94 |
# Define the file upload widget
|