emmas96 commited on
Commit
bc3d031
·
1 Parent(s): 0837757
Files changed (1) hide show
  1. app.py +27 -7
app.py CHANGED
@@ -19,16 +19,36 @@ from rdkit.Chem import DataStructs
19
 
20
  sys.path.insert(0, os.path.abspath("src/"))
21
 
22
- from clip.clip import _transform
23
- from training.datasets import CellPainting
24
- from clip.model import convert_weights, CLIPGeneral
25
-
26
  st.set_page_config(layout="wide")
27
 
28
  basepath = os.path.dirname(__file__)
29
  datapath = os.path.join(basepath, "data")
30
 
31
- MODEL_PATH = os.path.join(datapath, "epoch_55.pt")
32
-
33
  device = "cuda" if torch.cuda.is_available() else "cpu"
34
- model_type = "RN50"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  sys.path.insert(0, os.path.abspath("src/"))
21
 
 
 
 
 
22
  st.set_page_config(layout="wide")
23
 
24
  basepath = os.path.dirname(__file__)
25
  datapath = os.path.join(basepath, "data")
26
 
 
 
27
  device = "cuda" if torch.cuda.is_available() else "cpu"
28
+
29
+ st.title('HyperDTI: Task-conditioned modeling of drug-target interactions.')
30
+
31
+ def about_page():
32
+ st.markdown(
33
+ """
34
+ HyperNetworks have been established as an effective technique to achieve fast adaptation of parameters for
35
+ neural networks. Recently, HyperNetwork predictions conditioned on descriptors of tasks have improved
36
+ multi-task generalization in various domains, such as personalized federated learning and neural architecture
37
+ search. Especially powerful results were achieved in few- and zero-shot settings, attributed to the increased
38
+ information sharing by the HyperNetwork. With the rise of new diseases fast discovery of drugs is needed which
39
+ requires models that are able to generalize drug-target interaction predictions in low-data scenarios.
40
+
41
+ In this work, we propose the HyperPCM model, a task-conditioned HyperNetwork approach for the problem of
42
+ predicting drug-target interactions in drug discovery. Our model learns to generate a QSAR model specialized on
43
+ a given protein target. We demonstrate state-of-the-art performance over previous methods on multiple
44
+ well-known benchmarks, particularly in zero-shot settings for unseen protein targets.
45
+ """
46
+ )
47
+
48
+ page_names_to_func = {
49
+ 'About': about_page
50
+ }
51
+
52
+ selected_page = st.sidebar.selectbox('Choose function', page_names_to_func)
53
+
54
+ page_names_to_func[selected_page]()