Tristan Thrush commited on
Commit
a2b7efc
β€’
1 Parent(s): 9c04f1c

updated layout

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -90,8 +90,7 @@ with demo:
90
  state = gr.JSON(state_dict, visible=False)
91
 
92
  gr.Markdown("# Choose the more helpful response for the input")
93
-
94
- state_display = gr.Markdown(f"Your messages: 0/{TOTAL_CNT}")
95
 
96
  def _select_response(selected_response, state, dummy):
97
  if selected_response == "":
@@ -108,7 +107,7 @@ with demo:
108
  dummy,
109
  )
110
  state["cnt"] += 1
111
- state_display = f"Your messages: {state['cnt']}/{TOTAL_CNT}"
112
  done = state["cnt"] == TOTAL_CNT
113
  state["data"][-1]["selected_response"] = selected_response
114
  if state["cnt"] == TOTAL_CNT:
@@ -179,6 +178,8 @@ with demo:
179
  visible=False,
180
  )
181
 
 
 
182
  # Button event handlers
183
  get_window_location_search_js = """
184
  function(select_response, state, dummy) {
 
90
  state = gr.JSON(state_dict, visible=False)
91
 
92
  gr.Markdown("# Choose the more helpful response for the input")
93
+ gr.Markdown("By 'helpful', we mean whatever answer you personally find more useful.")
 
94
 
95
  def _select_response(selected_response, state, dummy):
96
  if selected_response == "":
 
107
  dummy,
108
  )
109
  state["cnt"] += 1
110
+ state_display = f"Messages left in HIT: {state['cnt']}/{TOTAL_CNT}"
111
  done = state["cnt"] == TOTAL_CNT
112
  state["data"][-1]["selected_response"] = selected_response
113
  if state["cnt"] == TOTAL_CNT:
 
178
  visible=False,
179
  )
180
 
181
+ state_display = gr.Markdown(f"Messages left in HIT: 0/{TOTAL_CNT}")
182
+
183
  # Button event handlers
184
  get_window_location_search_js = """
185
  function(select_response, state, dummy) {