5to9 commited on
Commit
5625eab
·
1 Parent(s): 7b0f86e

0.62 fixing chatbot_list

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -245,10 +245,10 @@ def generate_both(system_prompt, input_text,
245
  logging.error(f'{SPACER} Error: {e}, Traceback {traceback.format_exc()}')
246
 
247
  try:
248
- #system_prompt user_prompt max_new_tokens temperature top_p penalty bot_a_name bot_a_output bot_b_name bot_b_output
249
- #system_prompt, input_text, chatbot_a, chatbot_b, max_new_tokens=2048, temperature=0.2, top_p=0.9, repetition_penalty=1.1
250
 
251
- sheet_row = [system_prompt, input_text, max_new_tokens, temperature, top_p, repetition_penalty, chatbot_a_name, chatbot_a[0][1], chatbot_b_name, chatbot_b[0][1], "None", "None"]
252
  logging.debug(f'{SPACER}\nOutput row: {sheet_row}')
253
  sheet = get_google_sheet()
254
  sheet.append_row(sheet_row, table_range="A1:L1")
 
245
  logging.error(f'{SPACER} Error: {e}, Traceback {traceback.format_exc()}')
246
 
247
  try:
248
+
249
+ # chatbot_a[-1][1] Second index of last in list
250
 
251
+ sheet_row = [system_prompt, input_text, max_new_tokens, temperature, top_p, repetition_penalty, chatbot_a_name, chatbot_a[-1][1], chatbot_b_name, chatbot_b[-1][1], "None", "None"]
252
  logging.debug(f'{SPACER}\nOutput row: {sheet_row}')
253
  sheet = get_google_sheet()
254
  sheet.append_row(sheet_row, table_range="A1:L1")