make image display and download side by side
Browse files
app.py
CHANGED
|
@@ -176,8 +176,11 @@ if __name__ == "__main__":
|
|
| 176 |
file_input = gr.File(label="Upload a .h5ad single cell gene expression file")
|
| 177 |
species_input = gr.Dropdown(choices=["human", "mouse"], label="Select species")
|
| 178 |
run_button = gr.Button("Run")
|
| 179 |
-
|
| 180 |
-
|
|
|
|
|
|
|
|
|
|
| 181 |
|
| 182 |
# Add the components and link to the function
|
| 183 |
run_button.click(
|
|
@@ -187,3 +190,4 @@ if __name__ == "__main__":
|
|
| 187 |
)
|
| 188 |
|
| 189 |
demo.launch()
|
|
|
|
|
|
| 176 |
file_input = gr.File(label="Upload a .h5ad single cell gene expression file")
|
| 177 |
species_input = gr.Dropdown(choices=["human", "mouse"], label="Select species")
|
| 178 |
run_button = gr.Button("Run")
|
| 179 |
+
|
| 180 |
+
# Arrange UMAP plot and file output side by side
|
| 181 |
+
with gr.Row():
|
| 182 |
+
image_output = gr.Image(type="numpy", label="UMAP of UCE Embeddings")
|
| 183 |
+
file_output = gr.File(label="Download embeddings")
|
| 184 |
|
| 185 |
# Add the components and link to the function
|
| 186 |
run_button.click(
|
|
|
|
| 190 |
)
|
| 191 |
|
| 192 |
demo.launch()
|
| 193 |
+
|