atrytone commited on
Commit
754548a
·
1 Parent(s): cc2a0eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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]}