test with menu
Browse files
app.py
CHANGED
@@ -26,33 +26,32 @@ from rdkit import DataStructs
|
|
26 |
from PIL import Image
|
27 |
import matplotlib.pyplot as plt
|
28 |
|
29 |
-
|
|
|
|
|
|
|
30 |
|
31 |
#### TRYOUT MENU #####
|
32 |
|
33 |
page_names_to_funcs = {
|
34 |
-
|
35 |
-
|
36 |
-
"About
|
37 |
|
38 |
}
|
39 |
|
40 |
selected_page = st.sidebar.selectbox("What would you like to retrieve?", page_names_to_funcs.keys())
|
41 |
st.sidebar.markdown('')
|
42 |
-
n_objects = st.sidebar.selectbox(
|
43 |
-
"How many objects would you like to retrieve?",
|
44 |
-
("5", "10", "20"))
|
45 |
|
46 |
|
47 |
selected_model = st.sidebar.selectbox(
|
48 |
-
"Select a
|
49 |
-
("
|
50 |
|
51 |
model_dict = {
|
52 |
-
"
|
53 |
-
"
|
54 |
-
"
|
55 |
-
"CLOOME (imgres 320)" : "cloome_imres320.pt"
|
56 |
|
57 |
}
|
58 |
|
|
|
26 |
from PIL import Image
|
27 |
import matplotlib.pyplot as plt
|
28 |
|
29 |
+
def main_page(top_n, model_path):
|
30 |
+
st.markdown(
|
31 |
+
"""test """
|
32 |
+
)
|
33 |
|
34 |
#### TRYOUT MENU #####
|
35 |
|
36 |
page_names_to_funcs = {
|
37 |
+
# "Microscopy images from a molecule": images_from_molecule,
|
38 |
+
# "Molecules from a microscopy image": molecules_from_image,
|
39 |
+
"About AtomLenz": main_page,
|
40 |
|
41 |
}
|
42 |
|
43 |
selected_page = st.sidebar.selectbox("What would you like to retrieve?", page_names_to_funcs.keys())
|
44 |
st.sidebar.markdown('')
|
|
|
|
|
|
|
45 |
|
46 |
|
47 |
selected_model = st.sidebar.selectbox(
|
48 |
+
"Select a AtomLenz model to load",
|
49 |
+
("AtomLenz trained on synthetic data (default)", "AtomLenz for hand-drawn images", "ChemExpert (not available yet)"))
|
50 |
|
51 |
model_dict = {
|
52 |
+
"AtomLenz trained on synthetic data (default)" : "atomlenz_default.pt",
|
53 |
+
"AtomLenz for hand-drawn images" : "atomlenz_handdrawn.pt",
|
54 |
+
"ChemExpert (not available yet)" : "atomlenz_default.pt"
|
|
|
55 |
|
56 |
}
|
57 |
|