Spaces:
Runtime error
Runtime error
Commit
·
f15635f
1
Parent(s):
fb18d60
Renaming to remove special character &
Browse files
Swords&Wizardry_enhanced_output.json → SwordsAndWizardry_enhanced_output.json
RENAMED
File without changes
|
app.py
CHANGED
@@ -19,7 +19,7 @@ def load_enhanced_json(file_path):
|
|
19 |
with open(file_path, 'r') as file:
|
20 |
return json.load(file)
|
21 |
|
22 |
-
enhanced_json_file = "
|
23 |
enhanced_data = load_enhanced_json(enhanced_json_file)
|
24 |
|
25 |
# Extract document summary and page summaries
|
@@ -27,7 +27,7 @@ document_summary = enhanced_data.get('document_summary', 'No document summary av
|
|
27 |
page_summaries = {int(page): data['summary'] for page, data in enhanced_data.get('pages', {}).items()}
|
28 |
|
29 |
# Import saved file and view
|
30 |
-
embeddings_df_save_path = "
|
31 |
print("Loading embeddings.csv")
|
32 |
text_chunks_and_embedding_df_load = pd.read_csv(embeddings_df_save_path)
|
33 |
print("Embedding file loaded")
|
|
|
19 |
with open(file_path, 'r') as file:
|
20 |
return json.load(file)
|
21 |
|
22 |
+
enhanced_json_file = "SwordsAndWizardry_enhanced_output.json"
|
23 |
enhanced_data = load_enhanced_json(enhanced_json_file)
|
24 |
|
25 |
# Extract document summary and page summaries
|
|
|
27 |
page_summaries = {int(page): data['summary'] for page, data in enhanced_data.get('pages', {}).items()}
|
28 |
|
29 |
# Import saved file and view
|
30 |
+
embeddings_df_save_path = "SwordsAndWizardry_output_embeddings.csv"
|
31 |
print("Loading embeddings.csv")
|
32 |
text_chunks_and_embedding_df_load = pd.read_csv(embeddings_df_save_path)
|
33 |
print("Embedding file loaded")
|