Update app.py
Browse files
app.py
CHANGED
|
@@ -76,13 +76,13 @@ class model:
|
|
| 76 |
device=device,
|
| 77 |
)
|
| 78 |
|
| 79 |
-
return T.ToPILImage()(protein_image[0,0]), T.ToPILImage()(nucleus_image[0,0]), formatted_predicted_sequence
|
| 80 |
|
| 81 |
base_class = model()
|
| 82 |
|
| 83 |
with gr.Blocks(theme='gradio/soft') as demo:
|
| 84 |
gr.Markdown("## Inputs")
|
| 85 |
-
gr.Markdown("Select the prediction model. **Note the first run may take ~
|
| 86 |
gr.Markdown(
|
| 87 |
"- ```CELL-E_2_HPA_2560``` is a good general purpose model for various cell types using ICC-IF."
|
| 88 |
)
|
|
|
|
| 76 |
device=device,
|
| 77 |
)
|
| 78 |
|
| 79 |
+
return T.ToPILImage()(protein_image[0,0]), T.ToPILImage()(nucleus_image[0,0]), formatted_predicted_sequence.replace("<pad>", "")
|
| 80 |
|
| 81 |
base_class = model()
|
| 82 |
|
| 83 |
with gr.Blocks(theme='gradio/soft') as demo:
|
| 84 |
gr.Markdown("## Inputs")
|
| 85 |
+
gr.Markdown("Select the prediction model. **Note the first run may take ~2-3 minutes, but will take 3-4 seconds afterwards.**")
|
| 86 |
gr.Markdown(
|
| 87 |
"- ```CELL-E_2_HPA_2560``` is a good general purpose model for various cell types using ICC-IF."
|
| 88 |
)
|