Spaces:
Sleeping
Sleeping
elibrowne commited on
Commit ·
07e7d16
1
Parent(s): cadf427
State?
Browse files
app.py
CHANGED
|
@@ -161,6 +161,7 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
| 161 |
print("Updating data...")
|
| 162 |
id = data["user_id"]
|
| 163 |
print(id)
|
|
|
|
| 164 |
filename = id.replace('@', '_AT_').replace('.', '_DOT_')
|
| 165 |
# Create a local file that will be uploaded to HuggingFace
|
| 166 |
with open(filename + ".json", "w") as f:
|
|
@@ -263,11 +264,7 @@ with gr.Blocks(theme = theme) as user_eval:
|
|
| 263 |
def next_p(e0, e1, e2, e3, cur_step, mode, cr, cq):
|
| 264 |
cur_step += 1
|
| 265 |
# Add user data to the current response
|
| 266 |
-
print(cr)
|
| 267 |
-
print(cr.values())
|
| 268 |
cr["e5_scores"].append([e0, e1, e2, e3])
|
| 269 |
-
print(cr)
|
| 270 |
-
print(cr.values())
|
| 271 |
# Next item
|
| 272 |
if cur_step >= len(cq["top10_e5"]): # should always be 10 (DEBUG: >= to avoid out of bounds)
|
| 273 |
# Step 10: all sources
|
|
|
|
| 161 |
print("Updating data...")
|
| 162 |
id = data["user_id"]
|
| 163 |
print(id)
|
| 164 |
+
print(data)
|
| 165 |
filename = id.replace('@', '_AT_').replace('.', '_DOT_')
|
| 166 |
# Create a local file that will be uploaded to HuggingFace
|
| 167 |
with open(filename + ".json", "w") as f:
|
|
|
|
| 264 |
def next_p(e0, e1, e2, e3, cur_step, mode, cr, cq):
|
| 265 |
cur_step += 1
|
| 266 |
# Add user data to the current response
|
|
|
|
|
|
|
| 267 |
cr["e5_scores"].append([e0, e1, e2, e3])
|
|
|
|
|
|
|
| 268 |
# Next item
|
| 269 |
if cur_step >= len(cq["top10_e5"]): # should always be 10 (DEBUG: >= to avoid out of bounds)
|
| 270 |
# Step 10: all sources
|