Spaces:
No application file
No application file
mathysgrapotte commited on
Commit Β·
a40bde5
1
Parent(s): d5f2853
remove emojis
Browse files
main.py
CHANGED
|
@@ -26,7 +26,7 @@ def format_ontology_results_html(results, meta_yml):
|
|
| 26 |
html_content = """
|
| 27 |
<div class='ontology-results'>
|
| 28 |
<div class='results-header'>
|
| 29 |
-
<h2>
|
| 30 |
<p>Click on any ontology term to view detailed information in the EDAM database</p>
|
| 31 |
</div>
|
| 32 |
"""
|
|
@@ -46,7 +46,7 @@ def format_ontology_results_html(results, meta_yml):
|
|
| 46 |
html_content += f"""
|
| 47 |
<div class='input-section'>
|
| 48 |
<div class='input-header'>
|
| 49 |
-
<h3>
|
| 50 |
<p class='input-description'>{description}</p>
|
| 51 |
</div>
|
| 52 |
<div class='ontologies-container'>
|
|
@@ -611,13 +611,12 @@ def run_interface():
|
|
| 611 |
with gr.Column(scale=1, elem_classes="input-container"):
|
| 612 |
gr.HTML("""
|
| 613 |
<div class="section-header">
|
| 614 |
-
|
| 615 |
-
</div>
|
| 616 |
""")
|
| 617 |
|
| 618 |
# create the input textbox for the nf-core module name
|
| 619 |
module_input = gr.Textbox(
|
| 620 |
-
label="
|
| 621 |
placeholder="e.g. fastqc, samtools, bwa...",
|
| 622 |
info="Enter the name of the nf-core module you want to enhance",
|
| 623 |
elem_classes="gr-textbox"
|
|
@@ -637,18 +636,18 @@ def run_interface():
|
|
| 637 |
with gr.Column(scale=1, elem_classes="output-container"):
|
| 638 |
gr.HTML("""
|
| 639 |
<div class="section-header">
|
| 640 |
-
|
| 641 |
</div>
|
| 642 |
""")
|
| 643 |
|
| 644 |
# create the output HTML component for the ontology results
|
| 645 |
ontology_output = gr.HTML(
|
| 646 |
-
label="
|
| 647 |
elem_classes="result-container"
|
| 648 |
)
|
| 649 |
|
| 650 |
download_button = gr.File(
|
| 651 |
-
label="
|
| 652 |
elem_classes="result-container"
|
| 653 |
)
|
| 654 |
|
|
|
|
| 26 |
html_content = """
|
| 27 |
<div class='ontology-results'>
|
| 28 |
<div class='results-header'>
|
| 29 |
+
<h2> Discovered EDAM Ontologies</h2>
|
| 30 |
<p>Click on any ontology term to view detailed information in the EDAM database</p>
|
| 31 |
</div>
|
| 32 |
"""
|
|
|
|
| 46 |
html_content += f"""
|
| 47 |
<div class='input-section'>
|
| 48 |
<div class='input-header'>
|
| 49 |
+
<h3>{input_name}</h3>
|
| 50 |
<p class='input-description'>{description}</p>
|
| 51 |
</div>
|
| 52 |
<div class='ontologies-container'>
|
|
|
|
| 611 |
with gr.Column(scale=1, elem_classes="input-container"):
|
| 612 |
gr.HTML("""
|
| 613 |
<div class="section-header">
|
| 614 |
+
nf-core module
|
|
|
|
| 615 |
""")
|
| 616 |
|
| 617 |
# create the input textbox for the nf-core module name
|
| 618 |
module_input = gr.Textbox(
|
| 619 |
+
label="nf-core module name",
|
| 620 |
placeholder="e.g. fastqc, samtools, bwa...",
|
| 621 |
info="Enter the name of the nf-core module you want to enhance",
|
| 622 |
elem_classes="gr-textbox"
|
|
|
|
| 636 |
with gr.Column(scale=1, elem_classes="output-container"):
|
| 637 |
gr.HTML("""
|
| 638 |
<div class="section-header">
|
| 639 |
+
discovered ontologies
|
| 640 |
</div>
|
| 641 |
""")
|
| 642 |
|
| 643 |
# create the output HTML component for the ontology results
|
| 644 |
ontology_output = gr.HTML(
|
| 645 |
+
label="discovered EDAM ontologies",
|
| 646 |
elem_classes="result-container"
|
| 647 |
)
|
| 648 |
|
| 649 |
download_button = gr.File(
|
| 650 |
+
label="download original meta.yml with ontologies",
|
| 651 |
elem_classes="result-container"
|
| 652 |
)
|
| 653 |
|