Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickus Timothee authored and Waino committed Apr 15, 2024
1 parent 327b55e commit 89186bb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/demo/mammoth_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@
</style>
"""



ARCHITECTURE_HTML_ABNEG = """
<h3>Decoder</h3>
<div class="arch">
Expand Down Expand Up @@ -131,6 +129,7 @@
</style>
"""


def render(template, model_task):
task, lang = model_task.split('_')
if task == 'translate' or task == 'train':
Expand Down Expand Up @@ -176,7 +175,7 @@ def __call__(self):
height=None,
)
with col2:
architecture_html = ARCHITECTURE_HTML_HYDRA if not 'train' in model.task else ARCHITECTURE_HTML_ABNEG
architecture_html = ARCHITECTURE_HTML_HYDRA if 'train' not in model.task else ARCHITECTURE_HTML_ABNEG
st.markdown(
render(architecture_html, model.task),
unsafe_allow_html=True,
Expand Down

0 comments on commit 89186bb

Please sign in to comment.