Spaces:
Runtime error
Runtime error
Commit Β·
9c90849
1
Parent(s): e69f1e0
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,12 +56,12 @@ def get_json_file(docs):
|
|
| 56 |
with open(temp_filepath, "wb") as f:
|
| 57 |
f.write(docs.getvalue())
|
| 58 |
f.seek(0)
|
| 59 |
-
|
| 60 |
jq_schema='.messages[].content',
|
| 61 |
text_content=False)
|
| 62 |
-
|
| 63 |
|
| 64 |
-
return
|
| 65 |
|
| 66 |
|
| 67 |
# λ¬Έμλ€μ μ²λ¦¬νμ¬ ν
μ€νΈ μ²ν¬λ‘ λλλ ν¨μμ
λλ€.
|
|
|
|
| 56 |
with open(temp_filepath, "wb") as f:
|
| 57 |
f.write(docs.getvalue())
|
| 58 |
f.seek(0)
|
| 59 |
+
loader = JSONLoader(f.name,
|
| 60 |
jq_schema='.messages[].content',
|
| 61 |
text_content=False)
|
| 62 |
+
doc = loader.load()
|
| 63 |
|
| 64 |
+
return doc
|
| 65 |
|
| 66 |
|
| 67 |
# λ¬Έμλ€μ μ²λ¦¬νμ¬ ν
μ€νΈ μ²ν¬λ‘ λλλ ν¨μμ
λλ€.
|