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