Spaces:
Build error
Build error
Commit
·
7a76b91
1
Parent(s):
927d831
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def get_csv_file(csv_docs):
|
|
| 48 |
|
| 49 |
def get_json_file(json_docs):
|
| 50 |
temp_dir = tempfile.TemporaryDirectory()
|
| 51 |
-
temp_filepath=os.path.join(temp_dir.name, json_docs.name)
|
| 52 |
with open(temp_filepath, "wb") as f:
|
| 53 |
f.write(json_docs.getvalue())
|
| 54 |
json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.messages[].content', text_content=False)
|
|
|
|
| 48 |
|
| 49 |
def get_json_file(json_docs):
|
| 50 |
temp_dir = tempfile.TemporaryDirectory()
|
| 51 |
+
temp_filepath = os.path.join(temp_dir.name, json_docs.name)
|
| 52 |
with open(temp_filepath, "wb") as f:
|
| 53 |
f.write(json_docs.getvalue())
|
| 54 |
json_loader = JSONLoader(file_path=temp_filepath, jq_schema='.messages[].content', text_content=False)
|