Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,6 +58,10 @@ def send_result(l_output, r_output, prompt, pick):
|
|
58 |
# with open('results.csv','a') as res_file:
|
59 |
# writer = csv.writer(res_file)
|
60 |
# writer.writerow(row)
|
|
|
|
|
|
|
|
|
61 |
row = [USER_ID,prompt,LEFT_MODEL,RIGHT_MODEL,pick]
|
62 |
row = [str(x) for x in row]
|
63 |
body = {'values': [row]}
|
|
|
58 |
# with open('results.csv','a') as res_file:
|
59 |
# writer = csv.writer(res_file)
|
60 |
# writer.writerow(row)
|
61 |
+
if (pick=='left'):
|
62 |
+
pick = LEFT_MODEL
|
63 |
+
else:
|
64 |
+
pick = RIGHT_MODEL
|
65 |
row = [USER_ID,prompt,LEFT_MODEL,RIGHT_MODEL,pick]
|
66 |
row = [str(x) for x in row]
|
67 |
body = {'values': [row]}
|