qq1023 commited on
Commit
fb6a392
·
1 Parent(s): 3e4e27e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -187,16 +187,16 @@ 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({
195
  "File Name": file.name,
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({
195
  "File Name": file.name,
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