matanninio commited on
Commit
ab70b3e
·
1 Parent(s): 0d9a563

added meaningless comment for testing

Browse files
Files changed (1) hide show
  1. app.py +15 -3
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
 
3
  import mammal_demo
 
4
  MAIN_MARKDOWN_TEXT = """
5
 
6
  The **[ibm/biomed.omics.bl.sm.ma-ted-458m](https://huggingface.co/models?sort=trending&search=ibm%2Fbiomed.omics.bl)** model family is a biomedical foundation model and its finetuned variants trained on over 2 billion biological samples across multiple modalities, including proteins, small molecules, and single-cell gene data.
@@ -14,6 +15,8 @@ This page demonstrates a variety of drug discovery and biomedical tasks for the
14
 
15
  all_tasks, all_models = mammal_demo.tasks_and_models()
16
 
 
 
17
 
18
  def create_application():
19
  def task_change(value):
@@ -24,13 +27,22 @@ def create_application():
24
  if value in model.tasks
25
  ]
26
  if choices:
27
- active = len(choices)>1
28
  return (
29
- gr.update(choices=choices, value=choices[0], interactive=active, visible=True, label=f"Matching Mammal models ({len(choices)})",),
 
 
 
 
 
 
30
  *visibility,
31
  )
32
  else:
33
- return (gr.update(visible=False, value=None, label="No Matching Mammal models"), *visibility, )
 
 
 
34
 
35
  def model_change(value):
36
  return gr.update(
 
1
  import gradio as gr
2
 
3
  import mammal_demo
4
+
5
  MAIN_MARKDOWN_TEXT = """
6
 
7
  The **[ibm/biomed.omics.bl.sm.ma-ted-458m](https://huggingface.co/models?sort=trending&search=ibm%2Fbiomed.omics.bl)** model family is a biomedical foundation model and its finetuned variants trained on over 2 billion biological samples across multiple modalities, including proteins, small molecules, and single-cell gene data.
 
15
 
16
  all_tasks, all_models = mammal_demo.tasks_and_models()
17
 
18
+ # comment to push, remove me
19
+
20
 
21
  def create_application():
22
  def task_change(value):
 
27
  if value in model.tasks
28
  ]
29
  if choices:
30
+ active = len(choices) > 1
31
  return (
32
+ gr.update(
33
+ choices=choices,
34
+ value=choices[0],
35
+ interactive=active,
36
+ visible=True,
37
+ label=f"Matching Mammal models ({len(choices)})",
38
+ ),
39
  *visibility,
40
  )
41
  else:
42
+ return (
43
+ gr.update(visible=False, value=None, label="No Matching Mammal models"),
44
+ *visibility,
45
+ )
46
 
47
  def model_change(value):
48
  return gr.update(