amadinahmed
commited on
Commit
·
784208c
1
Parent(s):
b032c69
afafafa
Browse files
app.py
CHANGED
@@ -127,8 +127,8 @@ css = """
|
|
127 |
with gr.Blocks(title="Trash Classification", css=css) as demo:
|
128 |
|
129 |
with gr.Column():
|
130 |
-
with gr.Row():
|
131 |
-
item_probs = gr.outputs.Label(num_top_classes=1
|
132 |
with gr.Column():
|
133 |
gr.Markdown("## Inputs", elem_id="custom_header")
|
134 |
input_image = gr.Image(label="Input Image")
|
@@ -142,7 +142,7 @@ with gr.Blocks(title="Trash Classification", css=css) as demo:
|
|
142 |
gr.Markdown("### How to recycle?")
|
143 |
recycling_qn = gr.outputs.Label()
|
144 |
def submit_visible():
|
145 |
-
return {
|
146 |
|
147 |
|
148 |
|
|
|
127 |
with gr.Blocks(title="Trash Classification", css=css) as demo:
|
128 |
|
129 |
with gr.Column():
|
130 |
+
with gr.Row(visible=False) as results_label:
|
131 |
+
item_probs = gr.outputs.Label(num_top_classes=1)
|
132 |
with gr.Column():
|
133 |
gr.Markdown("## Inputs", elem_id="custom_header")
|
134 |
input_image = gr.Image(label="Input Image")
|
|
|
142 |
gr.Markdown("### How to recycle?")
|
143 |
recycling_qn = gr.outputs.Label()
|
144 |
def submit_visible():
|
145 |
+
return {results_label: gr.update(visible=True)}
|
146 |
|
147 |
|
148 |
|