patrickvonplaten commited on
Commit
d109182
1 Parent(s): 831957f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -169,7 +169,6 @@ def process(dataframe, row_number=0):
169
  for i in range(len(SUBMISSIONS))
170
  ]
171
  images = (SUBMISSIONS[c][int(image_id)]["images"] for c in choices)
172
- print({i: c for i, c in enumerate(choices)})
173
 
174
  prompt = SUBMISSIONS[choices[0]][int(image_id)]["Prompt"]
175
  prompt = f'# "{prompt}"'
@@ -183,11 +182,10 @@ def write_result(user_choice, row_number, dataframe):
183
  return row_number, dataframe
184
 
185
  user_choice = int(user_choice)
186
- print(user_choice)
187
  chosen_model = submission_names[dataframe.iloc[row_number][f"choice_{user_choice}"]]
188
- print(chosen_model)
189
 
190
  dataframe.loc[row_number, "result"] = chosen_model
 
191
  return row_number + 1, dataframe
192
 
193
 
 
169
  for i in range(len(SUBMISSIONS))
170
  ]
171
  images = (SUBMISSIONS[c][int(image_id)]["images"] for c in choices)
 
172
 
173
  prompt = SUBMISSIONS[choices[0]][int(image_id)]["Prompt"]
174
  prompt = f'# "{prompt}"'
 
182
  return row_number, dataframe
183
 
184
  user_choice = int(user_choice)
 
185
  chosen_model = submission_names[dataframe.iloc[row_number][f"choice_{user_choice}"]]
 
186
 
187
  dataframe.loc[row_number, "result"] = chosen_model
188
+ print(row_number)
189
  return row_number + 1, dataframe
190
 
191