Spaces:
Runtime error
Runtime error
Tristan Thrush
commited on
Commit
Β·
fd88c9a
1
Parent(s):
a2b7efc
updated layout
Browse files
app.py
CHANGED
|
@@ -107,7 +107,7 @@ with demo:
|
|
| 107 |
dummy,
|
| 108 |
)
|
| 109 |
state["cnt"] += 1
|
| 110 |
-
state_display = f"
|
| 111 |
done = state["cnt"] == TOTAL_CNT
|
| 112 |
state["data"][-1]["selected_response"] = selected_response
|
| 113 |
if state["cnt"] == TOTAL_CNT:
|
|
@@ -178,7 +178,7 @@ with demo:
|
|
| 178 |
visible=False,
|
| 179 |
)
|
| 180 |
|
| 181 |
-
state_display = gr.Markdown(f"
|
| 182 |
|
| 183 |
# Button event handlers
|
| 184 |
get_window_location_search_js = """
|
|
|
|
| 107 |
dummy,
|
| 108 |
)
|
| 109 |
state["cnt"] += 1
|
| 110 |
+
state_display = f"Submissions 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"Submissions left in HIT: 0/{TOTAL_CNT}")
|
| 182 |
|
| 183 |
# Button event handlers
|
| 184 |
get_window_location_search_js = """
|