Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -103,19 +103,19 @@ with gr.Blocks() as demo:
|
|
103 |
)
|
104 |
|
105 |
with gr.Row(visible=False) as slice_row:
|
106 |
-
with gr.Column(scale=
|
107 |
gr.Markdown("### Step 2: Visualizing your uploaded sample")
|
108 |
-
image_display = gr.Image()
|
109 |
slice_slider = gr.Slider(minimum=0, maximum=0, value=0, step=1, label="Browse Slices", visible=False)
|
110 |
with gr.Column(scale=1):
|
111 |
gr.Markdown("### Step 3: Visualizing Allen Brain Cell Types Atlas")
|
112 |
-
gallery = gr.Gallery(label="ABC Atlas")
|
113 |
gr.Markdown("**Step 4: Run cell type mapping**")
|
114 |
run_button = gr.Button("Run Mapping")
|
115 |
|
116 |
with gr.Column(visible=False) as plot_row:
|
117 |
gr.Markdown("### Step 5: Quantitative results of the mapping model.")
|
118 |
-
prob_plot = gr.BarPlot(prob_df, x="labels", y="values", title="Cell Type Probabilities", scroll_to_output=True, x_label_angle=-90)
|
119 |
gr.Markdown("### Step 6: Download Results.")
|
120 |
download_button = gr.DownloadButton(label="Download Results", value='./Cell_types_predictions.csv')
|
121 |
|
|
|
103 |
)
|
104 |
|
105 |
with gr.Row(visible=False) as slice_row:
|
106 |
+
with gr.Column(scale=1):
|
107 |
gr.Markdown("### Step 2: Visualizing your uploaded sample")
|
108 |
+
image_display = gr.Image(height = 400)
|
109 |
slice_slider = gr.Slider(minimum=0, maximum=0, value=0, step=1, label="Browse Slices", visible=False)
|
110 |
with gr.Column(scale=1):
|
111 |
gr.Markdown("### Step 3: Visualizing Allen Brain Cell Types Atlas")
|
112 |
+
gallery = gr.Gallery(label="ABC Atlas", height = 400)
|
113 |
gr.Markdown("**Step 4: Run cell type mapping**")
|
114 |
run_button = gr.Button("Run Mapping")
|
115 |
|
116 |
with gr.Column(visible=False) as plot_row:
|
117 |
gr.Markdown("### Step 5: Quantitative results of the mapping model.")
|
118 |
+
prob_plot = gr.BarPlot(prob_df, x="labels", y="values", title="Cell Type Probabilities", scroll_to_output=True, x_label_angle=-90, height = 600)
|
119 |
gr.Markdown("### Step 6: Download Results.")
|
120 |
download_button = gr.DownloadButton(label="Download Results", value='./Cell_types_predictions.csv')
|
121 |
|