mgyigit commited on
Commit
411d18e
·
1 Parent(s): e95a2e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -6
app.py CHANGED
@@ -165,6 +165,20 @@ def function(model_name: str, num_molecules: int, seed_num: int):
165
 
166
 
167
  with gr.Blocks(theme=gr.themes.Ocean()) as demo:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  with gr.Row():
169
  with gr.Column(scale=1):
170
  gr.Markdown("# DrugGEN: Target Centric De Novo Design of Drug Candidate Molecules with Graph Generative Deep Adversarial Networks")
@@ -186,8 +200,6 @@ with gr.Blocks(theme=gr.themes.Ocean()) as demo:
186
 
187
  with gr.Accordion("About DrugGEN Models", open=False):
188
  gr.Markdown("""
189
- ## Model Variations
190
-
191
  ### DrugGEN-AKT1
192
  This model is designed to generate molecules targeting the human AKT1 protein (UniProt ID: P31749).
193
 
@@ -269,7 +281,7 @@ For more details, see our [paper on arXiv](https://arxiv.org/abs/2302.07868).
269
  label="Download All Generated Molecules (SMILES format)",
270
  )
271
 
272
- with gr.Box():
273
  gr.Markdown("### Performance Metrics")
274
 
275
  with gr.Row():
@@ -320,7 +332,5 @@ For more details, see our [paper on arXiv](https://arxiv.org/abs/2302.07868).
320
  ],
321
  api_name="inference"
322
  )
323
-
324
  demo.queue()
325
- demo.launch()
326
-
 
165
 
166
 
167
  with gr.Blocks(theme=gr.themes.Ocean()) as demo:
168
+ # Add custom CSS for styling
169
+ gr.HTML("""
170
+ <style>
171
+ #metrics-container {
172
+ border: 1px solid rgba(128, 128, 128, 0.3);
173
+ border-radius: 8px;
174
+ padding: 15px;
175
+ margin-top: 15px;
176
+ margin-bottom: 15px;
177
+ background-color: rgba(255, 255, 255, 0.05);
178
+ }
179
+ </style>
180
+ """)
181
+
182
  with gr.Row():
183
  with gr.Column(scale=1):
184
  gr.Markdown("# DrugGEN: Target Centric De Novo Design of Drug Candidate Molecules with Graph Generative Deep Adversarial Networks")
 
200
 
201
  with gr.Accordion("About DrugGEN Models", open=False):
202
  gr.Markdown("""
 
 
203
  ### DrugGEN-AKT1
204
  This model is designed to generate molecules targeting the human AKT1 protein (UniProt ID: P31749).
205
 
 
281
  label="Download All Generated Molecules (SMILES format)",
282
  )
283
 
284
+ with gr.Group(elem_id="metrics-container"):
285
  gr.Markdown("### Performance Metrics")
286
 
287
  with gr.Row():
 
332
  ],
333
  api_name="inference"
334
  )
 
335
  demo.queue()
336
+ demo.launch()