Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -242,7 +242,10 @@ def process_and_output_files(input_files):
|
|
242 |
# Extract and categorize text for each file
|
243 |
text = extract_text(file)
|
244 |
category = categorize_text(text)
|
245 |
-
|
|
|
|
|
|
|
246 |
#parsed_info = parse(category, chatbot_response)
|
247 |
chats=list(chatbot_response)
|
248 |
# Append the relevant data for this file to the output_data list
|
|
|
242 |
# Extract and categorize text for each file
|
243 |
text = extract_text(file)
|
244 |
category = categorize_text(text)
|
245 |
+
|
246 |
+
ca = "RANDOM"
|
247 |
+
chatbot_response = query(ca , text) # Convert the generator to a list
|
248 |
+
#chatbot_response = query(category, text) # Convert the generator to a list
|
249 |
#parsed_info = parse(category, chatbot_response)
|
250 |
chats=list(chatbot_response)
|
251 |
# Append the relevant data for this file to the output_data list
|