Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,8 @@ def get_json_file(docs):
|
|
73 |
temp_file.write(docs.getvalue())
|
74 |
temp_file.seek(0)
|
75 |
json_loader = JSONLoader(temp_file.name,
|
76 |
-
jq_schema = '.messages[].content'
|
|
|
77 |
json_doc = json_loader.load()
|
78 |
|
79 |
return json_doc
|
|
|
73 |
temp_file.write(docs.getvalue())
|
74 |
temp_file.seek(0)
|
75 |
json_loader = JSONLoader(temp_file.name,
|
76 |
+
jq_schema = '.messages[].content',
|
77 |
+
text_content= False)
|
78 |
json_doc = json_loader.load()
|
79 |
|
80 |
return json_doc
|