qq1023 commited on
Commit
28f17f0
1 Parent(s): fb6a392

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -187,8 +187,8 @@ def process_and_output_files(input_files):
187
  # Extract and categorize text for each file
188
  text = extract_text(file)
189
  category = categorize_text(text)
190
- # chatbot_response = list(query(category, text)) # Convert the generator to a list
191
- # parsed_info = parse(category, chatbot_response)
192
 
193
  # Append the relevant data for this file to the output_data list
194
  output_data.append({
@@ -196,7 +196,7 @@ def process_and_output_files(input_files):
196
  "Extracted Text": text,
197
  "Category": category,
198
  # "Chatbot Response": chatbot_response[0][1], # Access the first element as a list
199
- # "Parsed Information": parsed_info,
200
  })
201
 
202
  return output_data
 
187
  # Extract and categorize text for each file
188
  text = extract_text(file)
189
  category = categorize_text(text)
190
+ chatbot_response = list(query(category, text)) # Convert the generator to a list
191
+ parsed_info = parse(category, chatbot_response)
192
 
193
  # Append the relevant data for this file to the output_data list
194
  output_data.append({
 
196
  "Extracted Text": text,
197
  "Category": category,
198
  # "Chatbot Response": chatbot_response[0][1], # Access the first element as a list
199
+ "Parsed Information": parsed_info,
200
  })
201
 
202
  return output_data