smoothjazzuser
commited on
Update app.py
Browse filesremove deprecated keywords from newest gradio version
app.py
CHANGED
@@ -145,7 +145,7 @@ with gr.Blocks() as iface:
|
|
145 |
gr.Markdown("This function finds the most critical pixels in an image for predicting a class by looking at the pixels models attend to. The best models will ideally make predictions by highlighting the expected object. Poorly generalizable models will often rely on environmental cues instead and forego looking at the most important pixels. Highlighting the most important pixels helps explain/build trust about whether a given model uses the correct features to make its prediction.")
|
146 |
with gr.Row():
|
147 |
with gr.Column():
|
148 |
-
test_image = gr.Image(label="Input Image"
|
149 |
input_btn = gr.Button(label="Classify image")
|
150 |
model_select_dropdown = gr.Radio(model_names, label="Model to test", interactive=True, default=3)
|
151 |
with gr.Column():
|
|
|
145 |
gr.Markdown("This function finds the most critical pixels in an image for predicting a class by looking at the pixels models attend to. The best models will ideally make predictions by highlighting the expected object. Poorly generalizable models will often rely on environmental cues instead and forego looking at the most important pixels. Highlighting the most important pixels helps explain/build trust about whether a given model uses the correct features to make its prediction.")
|
146 |
with gr.Row():
|
147 |
with gr.Column():
|
148 |
+
test_image = gr.Image(label="Input Image")
|
149 |
input_btn = gr.Button(label="Classify image")
|
150 |
model_select_dropdown = gr.Radio(model_names, label="Model to test", interactive=True, default=3)
|
151 |
with gr.Column():
|