Commit
·
3d192a7
1
Parent(s):
3702b9d
Update handler.py
Browse files- handler.py +1 -2
handler.py
CHANGED
|
@@ -37,13 +37,12 @@ class EndpointHandler:
|
|
| 37 |
id = data.pop("id", data)
|
| 38 |
text = data.pop("text", data)
|
| 39 |
batch = {
|
| 40 |
-
'id':
|
| 41 |
'text': [],
|
| 42 |
'topic': []
|
| 43 |
}
|
| 44 |
|
| 45 |
for topic in topics:
|
| 46 |
-
batch['id'].append(id)
|
| 47 |
batch['text'].append(text)
|
| 48 |
batch['topic'].append(topic)
|
| 49 |
|
|
|
|
| 37 |
id = data.pop("id", data)
|
| 38 |
text = data.pop("text", data)
|
| 39 |
batch = {
|
| 40 |
+
'id': id,
|
| 41 |
'text': [],
|
| 42 |
'topic': []
|
| 43 |
}
|
| 44 |
|
| 45 |
for topic in topics:
|
|
|
|
| 46 |
batch['text'].append(text)
|
| 47 |
batch['topic'].append(topic)
|
| 48 |
|