qq1023 commited on
Commit
b0f3144
·
1 Parent(s): 10d37cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -218,17 +218,7 @@ def process_and_output_files(input_files):
218
  "Category": category,
219
  "Chatbot Response": chatbot_response, # Access the first element as a list
220
  "trial" : list(chatbot_response),
221
- # try:
222
- # chatlist = list(chatbot_response)
223
- # "trial": chatlist,
224
- # except Exception as e:
225
- # "trial": f"Error: {e}",
226
-
227
- # try:
228
- # chatlist = list(chatbot_response)
229
- # "Parsed Information": chatlist[i][1][1],
230
- # except Exception as e:
231
- # "Parsed Information": f"Error: {e}",
232
  })
233
 
234
  i=i+1
 
218
  "Category": category,
219
  "Chatbot Response": chatbot_response, # Access the first element as a list
220
  "trial" : list(chatbot_response),
221
+ "Parsed Information": [item['value'][0][-1] for item in list(chatbot_response)] ,
 
 
 
 
 
 
 
 
 
 
222
  })
223
 
224
  i=i+1