Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Adjust corruption parameters.
Browse files- chat_application/main.py +1 -1
chat_application/main.py
CHANGED
|
@@ -375,7 +375,7 @@ def ask_bot(room_id, bot, bot_display_name, initial_prompt, instruct_prompt):
|
|
| 375 |
#replace most semicolons
|
| 376 |
less_semicolons_response = replace_semicolons(humanized_response)
|
| 377 |
#corrupt the response (add some typos and misspellings)
|
| 378 |
-
corrupted_response = corrupt(less_semicolons_response)
|
| 379 |
#remove weird chars
|
| 380 |
no_weird_chars = remove_weird_characters(corrupted_response)
|
| 381 |
#sub letters for names, so if the bot addressed A -> Apple
|
|
|
|
| 375 |
#replace most semicolons
|
| 376 |
less_semicolons_response = replace_semicolons(humanized_response)
|
| 377 |
#corrupt the response (add some typos and misspellings)
|
| 378 |
+
corrupted_response = corrupt(less_semicolons_response, misspell_aug_p=0.01, typo_aug_p=0.005)
|
| 379 |
#remove weird chars
|
| 380 |
no_weird_chars = remove_weird_characters(corrupted_response)
|
| 381 |
#sub letters for names, so if the bot addressed A -> Apple
|