Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -213,20 +213,20 @@ def process_and_output_files(input_files):
|
|
213 |
#parsed_info = parse(category, chatbot_response)
|
214 |
chats=list(chatbot_response)
|
215 |
# Append the relevant data for this file to the output_data list
|
216 |
-
data.append(
|
217 |
#"File Name": file.name,
|
218 |
#"Extracted Text": text,
|
219 |
#"Category": category,
|
220 |
#"Chatbot Response": chatbot_response, # Access the first element as a list
|
221 |
#"trial" : chats,
|
222 |
chats[1]["value"][0][1] ,
|
223 |
-
|
224 |
|
225 |
-
data_dicts = [json.loads(item[0]) for item in data]
|
226 |
|
227 |
-
df = pd.DataFrame(data_dicts)
|
228 |
|
229 |
-
return
|
230 |
|
231 |
|
232 |
|
|
|
213 |
#parsed_info = parse(category, chatbot_response)
|
214 |
chats=list(chatbot_response)
|
215 |
# Append the relevant data for this file to the output_data list
|
216 |
+
data.append(
|
217 |
#"File Name": file.name,
|
218 |
#"Extracted Text": text,
|
219 |
#"Category": category,
|
220 |
#"Chatbot Response": chatbot_response, # Access the first element as a list
|
221 |
#"trial" : chats,
|
222 |
chats[1]["value"][0][1] ,
|
223 |
+
)
|
224 |
|
225 |
+
# data_dicts = [json.loads(item[0]) for item in data]
|
226 |
|
227 |
+
# df = pd.DataFrame(data_dicts)
|
228 |
|
229 |
+
return data
|
230 |
|
231 |
|
232 |
|