Spaces:
Sleeping
Sleeping
must be correct order of docs to order
Browse files
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
|
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 |
|