Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
|
@@ -166,11 +166,15 @@ def all_challenges_view():
|
|
| 166 |
answer = gr.Textbox(label="Answer", interactive=False)
|
| 167 |
explanation = gr.Textbox(label="Explanation", interactive=False)
|
| 168 |
editors_note = gr.Textbox(label="Editor's Note", interactive=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 169 |
with gr.Column():
|
| 170 |
-
gr.Checkbox(
|
| 171 |
label="Show Thoughts", value=False
|
| 172 |
).change(
|
| 173 |
-
fn=
|
| 174 |
)
|
| 175 |
model_response = gr.Textbox(label="Model Response", interactive=False)
|
| 176 |
transcript = gr.Textbox(label="Transcript", interactive=False)
|
|
|
|
| 166 |
answer = gr.Textbox(label="Answer", interactive=False)
|
| 167 |
explanation = gr.Textbox(label="Explanation", interactive=False)
|
| 168 |
editors_note = gr.Textbox(label="Editor's Note", interactive=False)
|
| 169 |
+
|
| 170 |
+
def show_thoughts_toggle(x):
|
| 171 |
+
return not x
|
| 172 |
+
|
| 173 |
with gr.Column():
|
| 174 |
+
show_thoughts_checkbox = gr.Checkbox(
|
| 175 |
label="Show Thoughts", value=False
|
| 176 |
).change(
|
| 177 |
+
fn=show_thoughts_toggle, inputs=[show_thoughts], outputs=[show_thoughts]
|
| 178 |
)
|
| 179 |
model_response = gr.Textbox(label="Model Response", interactive=False)
|
| 180 |
transcript = gr.Textbox(label="Transcript", interactive=False)
|