Spaces:
Running
on
Zero
Running
on
Zero
Add bird examples
Browse files- app.py +3 -2
- assets/bird.png +0 -0
app.py
CHANGED
@@ -216,8 +216,8 @@ with gr.Blocks() as demo:
|
|
216 |
with gr.Row():
|
217 |
with gr.Column():
|
218 |
image = gr.Image(type="pil", interactive=True, label="Sample Image")
|
219 |
-
topk_features = gr.Textbox(value=topk_indices, placeholder="Top 200 Features", label="Top
|
220 |
-
known_explanation = gr.DataFrame(headers=["Feature", "Auto Interp Explanation"], label="Auto Interp Explanations")
|
221 |
with gr.Row():
|
222 |
clear_btn = gr.ClearButton([image, topk_features], value="Clear")
|
223 |
submit_btn = gr.Button("Submit", variant="primary")
|
@@ -234,6 +234,7 @@ with gr.Blocks() as demo:
|
|
234 |
["assets/sunglasses.jpg", 10, "Sunglasses"],
|
235 |
["assets/greedy.jpg", 14, "Greedy eating"],
|
236 |
["assets/railway.jpg", 28, "Railway tracks"],
|
|
|
237 |
],
|
238 |
inputs=[image, feature_num, dummy_text],
|
239 |
label="Examples",
|
|
|
216 |
with gr.Row():
|
217 |
with gr.Column():
|
218 |
image = gr.Image(type="pil", interactive=True, label="Sample Image")
|
219 |
+
topk_features = gr.Textbox(value=topk_indices, placeholder="Top 200 Features", label="Top 100 Features", max_lines=5)
|
220 |
+
known_explanation = gr.DataFrame(headers=["Feature", "Auto Interp Explanation(first 5k neurons)"], label="Auto Interp Explanations(first 5k neurons)")
|
221 |
with gr.Row():
|
222 |
clear_btn = gr.ClearButton([image, topk_features], value="Clear")
|
223 |
submit_btn = gr.Button("Submit", variant="primary")
|
|
|
234 |
["assets/sunglasses.jpg", 10, "Sunglasses"],
|
235 |
["assets/greedy.jpg", 14, "Greedy eating"],
|
236 |
["assets/railway.jpg", 28, "Railway tracks"],
|
237 |
+
["assets/bird.png", 1803, "The seagull feathers."],
|
238 |
],
|
239 |
inputs=[image, feature_num, dummy_text],
|
240 |
label="Examples",
|
assets/bird.png
ADDED
![]() |