Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ def setup():
|
|
131 |
|
132 |
# Define a custom JSON loading function
|
133 |
def json_loader(file_path):
|
134 |
-
with open(file_path, 'r') as file:
|
135 |
data = json.load(file)
|
136 |
documents = []
|
137 |
for item in data:
|
@@ -173,4 +173,4 @@ def setup():
|
|
173 |
|
174 |
if __name__ == "__main__":
|
175 |
import uvicorn
|
176 |
-
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
131 |
|
132 |
# Define a custom JSON loading function
|
133 |
def json_loader(file_path):
|
134 |
+
with open(file_path, 'r', encoding='utf-8-sig') as file:
|
135 |
data = json.load(file)
|
136 |
documents = []
|
137 |
for item in data:
|
|
|
173 |
|
174 |
if __name__ == "__main__":
|
175 |
import uvicorn
|
176 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|