Spaces:
Sleeping
Sleeping
akman12914
commited on
Commit
·
4f7b525
1
Parent(s):
aadcb71
error revise
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def get_json_file(docs):
|
|
| 58 |
with open(temp_filepath, 'wb') as f:
|
| 59 |
f.write(docs.getvalue())
|
| 60 |
json_loader = JSONLoader(file_path=temp_filepath,
|
| 61 |
-
jq_schema='.messages[].
|
| 62 |
text_content=False)
|
| 63 |
data = json_loader.load()
|
| 64 |
return data
|
|
|
|
| 58 |
with open(temp_filepath, 'wb') as f:
|
| 59 |
f.write(docs.getvalue())
|
| 60 |
json_loader = JSONLoader(file_path=temp_filepath,
|
| 61 |
+
jq_schema='.messages[].content',
|
| 62 |
text_content=False)
|
| 63 |
data = json_loader.load()
|
| 64 |
return data
|