Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def get_json_file(json_docs):
|
|
55 |
temp_dir = tempfile.TemporaryDirectory()
|
56 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
57 |
with open(temp_filepath, "w", encoding="utf-8") as f:
|
58 |
-
f.write(json_docs.getvalue())
|
59 |
json_loader = JSONLoader(
|
60 |
file_path=temp_filepath,
|
61 |
jq_schema='.messages[].content',
|
|
|
55 |
temp_dir = tempfile.TemporaryDirectory()
|
56 |
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
57 |
with open(temp_filepath, "w", encoding="utf-8") as f:
|
58 |
+
f.write(str(json_docs.getvalue()))
|
59 |
json_loader = JSONLoader(
|
60 |
file_path=temp_filepath,
|
61 |
jq_schema='.messages[].content',
|