0504ankitsharma commited on
Commit
b881675
·
verified ·
1 Parent(s): d8c42de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)