Spaces:
Runtime error
Runtime error
Commit ·
e69f1e0
1
Parent(s): 69d3b12
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def get_json_file(docs):
|
|
| 56 |
with open(temp_filepath, "wb") as f:
|
| 57 |
f.write(docs.getvalue())
|
| 58 |
f.seek(0)
|
| 59 |
-
json_loader = JSONLoader(
|
| 60 |
jq_schema='.messages[].content',
|
| 61 |
text_content=False)
|
| 62 |
json_doc = json_loader.load()
|
|
|
|
| 56 |
with open(temp_filepath, "wb") as f:
|
| 57 |
f.write(docs.getvalue())
|
| 58 |
f.seek(0)
|
| 59 |
+
json_loader = JSONLoader(f.name,
|
| 60 |
jq_schema='.messages[].content',
|
| 61 |
text_content=False)
|
| 62 |
json_doc = json_loader.load()
|