Skip to content

Commit

Permalink
fixed bug in webgui clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Bikatr7 committed May 20, 2024
1 parent 59421e2 commit 6393bdc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demo/translation_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},

"openai settings": {
"openai_model": "gpt-4-turbo",
"openai_model": "gpt-4o",
"openai_system_message": "As a Japanese to English translator, translate narration into English simple past, everything else should remain in its original tense. Maintain original formatting, punctuation, and paragraph structure. Keep pre-translated terms and anticipate names not replaced. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note: 〇 indicates chapter changes.",
"openai_temperature": 0.3,
"openai_top_p": 1.0,
Expand Down
4 changes: 2 additions & 2 deletions modules/common/file_ensurer.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class FileEnsurer():

"openai settings": {
"openai_model": "gpt-4",
"openai_system_message": "As a Japanese to English translator, translate narration into English simple past, everything else should remain in its original tense. Maintain original formatting, punctuation, and paragraph structure. Keep pre-translated terms and anticipate names not replaced. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note: 〇 indicates chapter changes.",
"openai_system_message": "Translate the text from Japanese to English.",
"openai_temperature": 0.3,
"openai_top_p": 1.0,
"openai_n": 1,
Expand All @@ -100,7 +100,7 @@ class FileEnsurer():

"gemini settings": {
"gemini_model": "gemini-pro",
"gemini_prompt": "As a Japanese to English translator, translate narration into English simple past, everything else should remain in its original tense. Maintain original formatting, punctuation, and paragraph structure. Keep pre-translated terms and anticipate names not replaced. Preserve terms and markers marked with >>><<< and match the output's line count to the input's. Note: 〇 indicates chapter changes.",
"gemini_prompt": "Translate the text from Japanese to English",
"gemini_temperature": 0.3,
"gemini_top_p": None,
"gemini_top_k": None,
Expand Down
2 changes: 1 addition & 1 deletion webgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ def clear_translation_settings_input_fields():
"deepl_formality": None,
}

return settings
return *settings.values(),

##-------------------start-of-fetch_log_content()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Expand Down

0 comments on commit 6393bdc

Please sign in to comment.