moldenhof commited on
Commit
5417a1b
1 Parent(s): 9d217be

test with menu

Browse files
Files changed (1) hide show
  1. app.py +12 -13
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
- "Microscopy images from a molecule": images_from_molecule,
35
- "Molecules from a microscopy image": molecules_from_image,
36
- "About CLOOME": main_page,
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 CLOOME model to load",
49
- ("CLOOME (default)", "CLOOME (CLIP imgres 320)", "CLOOME (fullres)", "CLOOME (imgres 320)"))
50
 
51
  model_dict = {
52
- "CLOOME (default)" : "cloome_default.pt",
53
- "CLOOME (CLIP imgres 320)" : "cloome_cli_imres320.pt",
54
- "CLOOME (fullres)" : "cloome_fullres.pt",
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