qq1023 commited on
Commit
1dcfd62
·
1 Parent(s): ca89d74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -217,7 +217,18 @@ def process_and_output_files(input_files):
217
  "Extracted Text": text,
218
  "Category": category,
219
  "Chatbot Response": chatbot_response, # Access the first element as a list
220
- "Parsed Information": chatbot_response[i][1][1],
 
 
 
 
 
 
 
 
 
 
 
221
  })
222
 
223
  i=i+1
 
217
  "Extracted Text": text,
218
  "Category": category,
219
  "Chatbot Response": chatbot_response, # Access the first element as a list
220
+
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