Beav3r commited on
Commit
9805407
·
verified ·
1 Parent(s): 04c19dc

must be correct order of docs to order

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -19,10 +19,11 @@ def initialize_bot(api_key):
19
  # Set the API key
20
  os.environ['GROQ_API_KEY'] = api_key
21
 
 
 
22
  # Load documents (done once)
23
  if not docs: # Only load if docs are not already loaded
24
- for path in glob.glob(f"{base_path}/*_processed.json"):
25
- print(path)
26
  with open(path, 'r') as f:
27
  docs.extend(json.load(f))
28
 
 
19
  # Set the API key
20
  os.environ['GROQ_API_KEY'] = api_key
21
 
22
+ pathes = ["./Data/hate_speech_processed.json", "./Data/reddit_jokes2_processed.json", "./Data/stupidstuff_processed.json", "./Data/wocka_processed.json", "./Data/reddit_jokes1_processed.json"]
23
+
24
  # Load documents (done once)
25
  if not docs: # Only load if docs are not already loaded
26
+ for path in pathes:
 
27
  with open(path, 'r') as f:
28
  docs.extend(json.load(f))
29