Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -350,14 +350,14 @@ with gr.Blocks(theme=theme, css=layout_css, title="LocPred-Prok") as app:
|
|
| 350 |
<div class="header-title">LocPred-Prok</div>
|
| 351 |
<div class="header-sub">Dual-Branch Deep Learning for Prokaryotic Subcellular Localization</div>
|
| 352 |
<div class="badge-container">
|
| 353 |
-
<a href="https://github.com/
|
| 354 |
GitHub
|
| 355 |
</a>
|
| 356 |
<a href="#" target="_blank" class="badge-link">
|
| 357 |
Paper
|
| 358 |
</a>
|
| 359 |
<span class="badge-link" style="cursor:default">
|
| 360 |
-
|
| 361 |
</span>
|
| 362 |
<span class="badge-link" style="cursor:default">
|
| 363 |
⚖️ MIT License
|
|
@@ -368,24 +368,24 @@ with gr.Blocks(theme=theme, css=layout_css, title="LocPred-Prok") as app:
|
|
| 368 |
|
| 369 |
with gr.Row():
|
| 370 |
with gr.Column(elem_classes="panel-card"):
|
| 371 |
-
gr.Markdown("<div class='panel-header'
|
| 372 |
sequence_input = gr.Textbox(lines=8, show_label=False, placeholder=">Sequence...")
|
| 373 |
with gr.Row():
|
| 374 |
clear_btn = gr.ClearButton(sequence_input, value="Clear")
|
| 375 |
submit_btn = gr.Button("Predict Analysis", variant="primary")
|
| 376 |
-
gr.Examples([[">
|
| 377 |
|
| 378 |
with gr.Column(elem_classes="panel-card"):
|
| 379 |
-
gr.Markdown("<div class='panel-header'
|
| 380 |
output_svg = gr.HTML(label="Visual", show_label=False)
|
| 381 |
|
| 382 |
with gr.Row():
|
| 383 |
with gr.Column(elem_classes="panel-card"):
|
| 384 |
-
gr.Markdown("<div class='panel-header'
|
| 385 |
output_label = gr.Label(num_top_classes=NUM_CLASSES, show_label=False)
|
| 386 |
|
| 387 |
with gr.Column(elem_classes="panel-card"):
|
| 388 |
-
gr.Markdown("<div class='panel-header'
|
| 389 |
output_plot = gr.Plot(label="Attention", show_label=False)
|
| 390 |
|
| 391 |
submit_btn.click(fn=predict, inputs=sequence_input, outputs=[output_label, output_svg, output_plot])
|
|
|
|
| 350 |
<div class="header-title">LocPred-Prok</div>
|
| 351 |
<div class="header-sub">Dual-Branch Deep Learning for Prokaryotic Subcellular Localization</div>
|
| 352 |
<div class="badge-container">
|
| 353 |
+
<a href="https://github.com/protein-ailab/LocPred-Prok" target="_blank" class="badge-link">
|
| 354 |
GitHub
|
| 355 |
</a>
|
| 356 |
<a href="#" target="_blank" class="badge-link">
|
| 357 |
Paper
|
| 358 |
</a>
|
| 359 |
<span class="badge-link" style="cursor:default">
|
| 360 |
+
ESM-2
|
| 361 |
</span>
|
| 362 |
<span class="badge-link" style="cursor:default">
|
| 363 |
⚖️ MIT License
|
|
|
|
| 368 |
|
| 369 |
with gr.Row():
|
| 370 |
with gr.Column(elem_classes="panel-card"):
|
| 371 |
+
gr.Markdown("<div class='panel-header'>Sequence Input</div>")
|
| 372 |
sequence_input = gr.Textbox(lines=8, show_label=False, placeholder=">Sequence...")
|
| 373 |
with gr.Row():
|
| 374 |
clear_btn = gr.ClearButton(sequence_input, value="Clear")
|
| 375 |
submit_btn = gr.Button("Predict Analysis", variant="primary")
|
| 376 |
+
gr.Examples([[">A0A0C5CJR8|Extracellular\nMSKAKDKAIVSAAQASTAYSQIDSFSHLYDRGGNLTINGKPSYTVDQAATQLLRDGAAYRDFDGNGKIDLTYTFLTSASSSTMNKHGISGFSQFNAQQKAQAALAMQSWSDVANVTFTEKASGGDGHMTFGNYSSGQDGAAAFAYLPGTGAGYDGTSWYLTNNSYTPNKTPDLNNYGRQTLTHEIGHTLGLAHPGDYNAGEGAPTYNDATYGQDTRGYSLMSYWSESNTNQNFSKGGVEAYASGPLIDDIAAIQKLYGANYNTRAGDTTYGFNSNTGRDFLSATSNADKLVFSVWDGGGNDTLDFSGFTQNQKINLNEASFSDVGGLVGNVSIAKGVTIENAFGGAGNDLIIGNNAANVIKGGAGNDLIYGAGGADQLWGGAGNDTFVFGASSDSKPGAADKIFDFTSGSDKIDLSGITKGAGLTFVNAFTGHAGDAVLTYAAGTNLGTLAVDFSGHGVADFLVTTVGQAAVSDIVA"]], inputs=sequence_input, label=None)
|
| 377 |
|
| 378 |
with gr.Column(elem_classes="panel-card"):
|
| 379 |
+
gr.Markdown("<div class='panel-header'>Sublocalization Visualization</div>")
|
| 380 |
output_svg = gr.HTML(label="Visual", show_label=False)
|
| 381 |
|
| 382 |
with gr.Row():
|
| 383 |
with gr.Column(elem_classes="panel-card"):
|
| 384 |
+
gr.Markdown("<div class='panel-header'>Prediction Confidence</div>")
|
| 385 |
output_label = gr.Label(num_top_classes=NUM_CLASSES, show_label=False)
|
| 386 |
|
| 387 |
with gr.Column(elem_classes="panel-card"):
|
| 388 |
+
gr.Markdown("<div class='panel-header'>Attention Heatmap (Sequence Weights)</div>")
|
| 389 |
output_plot = gr.Plot(label="Attention", show_label=False)
|
| 390 |
|
| 391 |
submit_btn.click(fn=predict, inputs=sequence_input, outputs=[output_label, output_svg, output_plot])
|