Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -465,7 +465,7 @@ def switch_pipeline(modelname:str):
|
|
465 |
global current_model
|
466 |
current_model=modelname
|
467 |
return f"""
|
468 |
-
<div style="text-align: center; margin: 0 auto;">Selected model <a href="https://huggingface.com/
|
469 |
""",gr.update(choices=character_mappings_model_wise[modelname])
|
470 |
|
471 |
|
@@ -480,7 +480,7 @@ with gr.Blocks(css=css,elem_id="panel") as od_app:
|
|
480 |
""")
|
481 |
#input panel
|
482 |
choosen_model=gr.HTML(f"""
|
483 |
-
<div style="text-align: center; margin: 0 auto;">Selected model <a href="https://huggingface.com/
|
484 |
""")
|
485 |
with gr.Row(elem_id="input-panel"):
|
486 |
|
|
|
465 |
global current_model
|
466 |
current_model=modelname
|
467 |
return f"""
|
468 |
+
<div style="text-align: center; margin: 0 auto;">Selected model <a href="https://huggingface.com/{modelname}">{modelname}</a></div>
|
469 |
""",gr.update(choices=character_mappings_model_wise[modelname])
|
470 |
|
471 |
|
|
|
480 |
""")
|
481 |
#input panel
|
482 |
choosen_model=gr.HTML(f"""
|
483 |
+
<div style="text-align: center; margin: 0 auto;">Selected model <a href="https://huggingface.com/{current_model}">{current_model}</a></div>
|
484 |
""")
|
485 |
with gr.Row(elem_id="input-panel"):
|
486 |
|