Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -163,13 +163,13 @@ with gr.Blocks() as profile_interface:
|
|
163 |
)
|
164 |
lookup_btn = gr.Button("Lookup Profile", variant="primary")
|
165 |
clear_btn = gr.Button("Clear Results", variant="secondary")
|
166 |
-
state = gr.State(elem_classes="status-container")
|
167 |
profile_preview = gr.Markdown(label="Profile Results", value="")
|
168 |
|
169 |
# Event Bindings
|
170 |
lookup_btn.click(lookup_profile, None, None)
|
171 |
-
clear_btn.click(lambda: profile_preview.update("")
|
172 |
-
assessment_id_input.change(lambda: state.update("", color=""), None, None)
|
173 |
|
174 |
# Profile Interface
|
175 |
|
|
|
163 |
)
|
164 |
lookup_btn = gr.Button("Lookup Profile", variant="primary")
|
165 |
clear_btn = gr.Button("Clear Results", variant="secondary")
|
166 |
+
#state = gr.State(elem_classes="status-container")
|
167 |
profile_preview = gr.Markdown(label="Profile Results", value="")
|
168 |
|
169 |
# Event Bindings
|
170 |
lookup_btn.click(lookup_profile, None, None)
|
171 |
+
clear_btn.click(lambda: profile_preview.update("")) #, state.update("", color=""))
|
172 |
+
#assessment_id_input.change(lambda: state.update("", color=""), None, None)
|
173 |
|
174 |
# Profile Interface
|
175 |
|