Spaces:
Sleeping
Sleeping
0.62 fixing chatbot_list
Browse files
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 |
-
|
249 |
-
#
|
250 |
|
251 |
-
sheet_row = [system_prompt, input_text, max_new_tokens, temperature, top_p, repetition_penalty, chatbot_a_name, chatbot_a[
|
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")
|