Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|