Ashlee Kupor
commited on
Commit
·
b2bfb89
1
Parent(s):
3d54340
fix chat bug
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -187,7 +187,7 @@ class EndpointHandler():
|
|
| 187 |
def process_chat_transcript(self, chat_file) -> List[Chat]:
|
| 188 |
chat_list = []
|
| 189 |
chat_file = requests.get(chat_file)
|
| 190 |
-
for line in chat_file.text:
|
| 191 |
split_line = line.split('\t')
|
| 192 |
if len(split_line) < 3:
|
| 193 |
continue
|
|
|
|
| 187 |
def process_chat_transcript(self, chat_file) -> List[Chat]:
|
| 188 |
chat_list = []
|
| 189 |
chat_file = requests.get(chat_file)
|
| 190 |
+
for line in chat_file.text.split('\n'):
|
| 191 |
split_line = line.split('\t')
|
| 192 |
if len(split_line) < 3:
|
| 193 |
continue
|