qq1023 commited on
Commit
ca95b50
·
1 Parent(s): fdfc6c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -203,6 +203,7 @@ def flag_if_shared(flag_method):
203
  def process_and_output_files(input_files):
204
  output_data = []
205
 
 
206
  for file in input_files:
207
  # Extract and categorize text for each file
208
  text = extract_text(file)
@@ -216,9 +217,11 @@ def process_and_output_files(input_files):
216
  "Extracted Text": text,
217
  "Category": category,
218
  "Chatbot Response": chatbot_response # Access the first element as a list
219
- #"Parsed Information": parsed_info,
220
  })
221
 
 
 
222
  return output_data
223
 
224
 
 
203
  def process_and_output_files(input_files):
204
  output_data = []
205
 
206
+ i=0
207
  for file in input_files:
208
  # Extract and categorize text for each file
209
  text = extract_text(file)
 
217
  "Extracted Text": text,
218
  "Category": category,
219
  "Chatbot Response": chatbot_response # Access the first element as a list
220
+ "Parsed Information": chatbot_response[i][1][1],
221
  })
222
 
223
+ i=i+1
224
+
225
  return output_data
226
 
227