taesiri commited on
Commit
d273b42
·
1 Parent(s): 0b8adb6
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -221,6 +221,7 @@ def evaluate(verdict, state):
221
  neither_reset, # reset neither is good button style
222
  tie_reset, # reset tie button style
223
  next_sample["post_id"],
 
224
  )
225
 
226
 
@@ -254,6 +255,7 @@ def initialize():
254
  False, # neither_selected
255
  False, # tie_selected
256
  sample["post_id"],
 
257
  )
258
 
259
 
@@ -317,11 +319,14 @@ with gr.Blocks() as demo:
317
  neither_btn = gr.Button("👎 Both are bad", variant="secondary", visible=False)
318
 
319
  with gr.Accordion("DEBUG", open=False):
320
- with gr.Row():
321
  post_id_display = gr.Textbox(
322
  label="Post ID", show_label=True, interactive=False
323
  )
324
  model_info = gr.Textbox(label="Model Information", show_label=True)
 
 
 
325
  state = gr.State()
326
  selected_verdict = gr.State()
327
 
@@ -360,6 +365,7 @@ with gr.Blocks() as demo:
360
  neither_selected,
361
  tie_selected,
362
  post_id_display,
 
363
  ],
364
  )
365
 
@@ -468,6 +474,7 @@ with gr.Blocks() as demo:
468
  neither_btn,
469
  tie_btn,
470
  post_id_display,
 
471
  ],
472
  )
473
 
 
221
  neither_reset, # reset neither is good button style
222
  tie_reset, # reset tie button style
223
  next_sample["post_id"],
224
+ next_sample["simplified_instruction"],
225
  )
226
 
227
 
 
255
  False, # neither_selected
256
  False, # tie_selected
257
  sample["post_id"],
258
+ sample["simplified_instruction"],
259
  )
260
 
261
 
 
319
  neither_btn = gr.Button("👎 Both are bad", variant="secondary", visible=False)
320
 
321
  with gr.Accordion("DEBUG", open=False):
322
+ with gr.Column():
323
  post_id_display = gr.Textbox(
324
  label="Post ID", show_label=True, interactive=False
325
  )
326
  model_info = gr.Textbox(label="Model Information", show_label=True)
327
+ simplified_instruction_debug = gr.Textbox(
328
+ label="Simplified Instruction", show_label=True, interactive=False
329
+ )
330
  state = gr.State()
331
  selected_verdict = gr.State()
332
 
 
365
  neither_selected,
366
  tie_selected,
367
  post_id_display,
368
+ simplified_instruction_debug,
369
  ],
370
  )
371
 
 
474
  neither_btn,
475
  tie_btn,
476
  post_id_display,
477
+ simplified_instruction_debug,
478
  ],
479
  )
480