Spaces:
Sleeping
Sleeping
Commit
·
5ca5ea1
1
Parent(s):
f17fcc9
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,6 +102,6 @@ async def search(data: dict):
|
|
| 102 |
"Popularity": row['Popularity'],
|
| 103 |
"Themes": row['Themes'],
|
| 104 |
"MatchedMove": move_idx}
|
| 105 |
-
yield json.dumps(result
|
| 106 |
|
| 107 |
return StreamingResponse(generate(), media_type="application/x-ndjson")
|
|
|
|
| 102 |
"Popularity": row['Popularity'],
|
| 103 |
"Themes": row['Themes'],
|
| 104 |
"MatchedMove": move_idx}
|
| 105 |
+
yield json.dumps(result) + "\n"
|
| 106 |
|
| 107 |
return StreamingResponse(generate(), media_type="application/x-ndjson")
|