mschuh commited on
Commit
d54f04d
·
verified ·
1 Parent(s): 6be1f91

Update for ZeroGPU

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -81,7 +81,7 @@ The values can be interpreted as the probability of interaction between the drug
81
 
82
  Thank you for using <span style='font-variant:small-caps;'>BarlowDTI</span>!
83
 
84
- Note: Inference may take longer, you can upgrade to a paid GPU-enabled plan for faster inference.
85
  """
86
 
87
  article = """
@@ -93,7 +93,7 @@ in combination with
93
  [BioSNAP](https://snap.stanford.edu/index.html), and
94
  [DAVIS](https://doi.org/10.1038/nbt.1990).
95
 
96
- If you use our approach in your research, please cite our paper:
97
  ```
98
  @misc{schuh2024barlowtwinsdeepneural,
99
  title={Barlow Twins Deep Neural Network for Advanced 1D Drug-Target Interaction Prediction},
@@ -115,8 +115,8 @@ theme = gr.themes.Base(
115
  iface = gr.Interface(
116
  fn=predict_and_plot,
117
  inputs=[
118
- gr.Textbox(label="Protein Sequence", info="Just one sequence is allowed. Remove FASTA syntax (e.g. >ABC)."),
119
- gr.Textbox(label="Molecule SMILES", info="One per line, multiple allowed."),
120
  gr.CheckboxGroup(choices=dataset_names, label="Select Models for Prediction", value="BarlowDTI XXL")
121
  ],
122
  outputs=[
 
81
 
82
  Thank you for using <span style='font-variant:small-caps;'>BarlowDTI</span>!
83
 
84
+ *Note: Thanks to ZeroGPU, you can run this model on a GPU for free.*
85
  """
86
 
87
  article = """
 
93
  [BioSNAP](https://snap.stanford.edu/index.html), and
94
  [DAVIS](https://doi.org/10.1038/nbt.1990).
95
 
96
+ If you use our model in your research, please cite our paper:
97
  ```
98
  @misc{schuh2024barlowtwinsdeepneural,
99
  title={Barlow Twins Deep Neural Network for Advanced 1D Drug-Target Interaction Prediction},
 
115
  iface = gr.Interface(
116
  fn=predict_and_plot,
117
  inputs=[
118
+ gr.Textbox(label="Protein Sequence", info="Just one sequence is allowed. Remove FASTA syntax (e.g. > ABC).", placeholder="MRSWSTVMLAVLATAATVFGHDADPEMKMTTPQIIMRWGYPAMIYDVTTEDGYILELHRI"),
119
+ gr.Textbox(label="Molecule SMILES", info="One per line, multiple allowed.", placeholder="C1CSSC1CCCCC(=O)O\nCC1=CC(=C(C=C1)C(=O)O)O"),
120
  gr.CheckboxGroup(choices=dataset_names, label="Select Models for Prediction", value="BarlowDTI XXL")
121
  ],
122
  outputs=[