Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,6 @@ def load_json_file(filepath):
|
|
| 72 |
with open(filepath, 'r') as f:
|
| 73 |
file_contents = f.read()
|
| 74 |
print(file_contents[:500]) # print only the first 500 characters
|
| 75 |
-
return json.loads(file_contents)
|
| 76 |
|
| 77 |
print(f"Creating index...")
|
| 78 |
index = get_index(INDEX_FILE)
|
|
|
|
| 72 |
with open(filepath, 'r') as f:
|
| 73 |
file_contents = f.read()
|
| 74 |
print(file_contents[:500]) # print only the first 500 characters
|
|
|
|
| 75 |
|
| 76 |
print(f"Creating index...")
|
| 77 |
index = get_index(INDEX_FILE)
|