Spaces:
Runtime error
Runtime error
Update bot.py
Browse files
bot.py
CHANGED
|
@@ -340,7 +340,8 @@ def clean_text(raw, settings):
|
|
| 340 |
if clean:
|
| 341 |
if clean.startswith(":") or clean.startswith(":"):
|
| 342 |
clean_speech = clean[1:].strip()
|
| 343 |
-
|
|
|
|
| 344 |
else:
|
| 345 |
if out:
|
| 346 |
out[-1] += f" {clean}"
|
|
|
|
| 340 |
if clean:
|
| 341 |
if clean.startswith(":") or clean.startswith(":"):
|
| 342 |
clean_speech = clean[1:].strip()
|
| 343 |
+
speech_tag = tag_map.get('""', '""')
|
| 344 |
+
out.append(f"{speech_tag}: {clean_speech}")
|
| 345 |
else:
|
| 346 |
if out:
|
| 347 |
out[-1] += f" {clean}"
|