Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -199,7 +199,7 @@ def process_and_output_files(input_files):
|
|
199 |
# Extract and categorize text for each file
|
200 |
text = extract_text(file)
|
201 |
category = categorize_text(text)
|
202 |
-
chatbot_response =
|
203 |
parsed_info = parse(category, chatbot_response)
|
204 |
|
205 |
# Append the relevant data for this file to the output_data list
|
|
|
199 |
# Extract and categorize text for each file
|
200 |
text = extract_text(file)
|
201 |
category = categorize_text(text)
|
202 |
+
chatbot_response = query(category, text) # Convert the generator to a list
|
203 |
parsed_info = parse(category, chatbot_response)
|
204 |
|
205 |
# Append the relevant data for this file to the output_data list
|