Bikatr7 commited on
Commit
12a3f4b
1 Parent(s): 4a01596

fixed bug in custom settings upload and clear

Browse files
demo/translation_settings.json CHANGED
@@ -10,7 +10,7 @@
10
  },
11
 
12
  "openai settings": {
13
- "openai_model": "gpt-4-turbo",
14
  "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.",
15
  "openai_temperature": 0.3,
16
  "openai_top_p": 1.0,
 
10
  },
11
 
12
  "openai settings": {
13
+ "openai_model": "gpt-4o",
14
  "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.",
15
  "openai_temperature": 0.3,
16
  "openai_top_p": 1.0,
modules/common/file_ensurer.py CHANGED
@@ -86,7 +86,7 @@ class FileEnsurer():
86
 
87
  "openai settings": {
88
  "openai_model": "gpt-4",
89
- "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.",
90
  "openai_temperature": 0.3,
91
  "openai_top_p": 1.0,
92
  "openai_n": 1,
@@ -100,7 +100,7 @@ class FileEnsurer():
100
 
101
  "gemini settings": {
102
  "gemini_model": "gemini-pro",
103
- "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.",
104
  "gemini_temperature": 0.3,
105
  "gemini_top_p": None,
106
  "gemini_top_k": None,
 
86
 
87
  "openai settings": {
88
  "openai_model": "gpt-4",
89
+ "openai_system_message": "Translate the text from Japanese to English.",
90
  "openai_temperature": 0.3,
91
  "openai_top_p": 1.0,
92
  "openai_n": 1,
 
100
 
101
  "gemini settings": {
102
  "gemini_model": "gemini-pro",
103
+ "gemini_prompt": "Translate the text from Japanese to English",
104
  "gemini_temperature": 0.3,
105
  "gemini_top_p": None,
106
  "gemini_top_k": None,
webgui.py CHANGED
@@ -1412,7 +1412,7 @@ class KudasaiGUI:
1412
  "deepl_formality": None,
1413
  }
1414
 
1415
- return settings
1416
 
1417
  ##-------------------start-of-fetch_log_content()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1418
 
 
1412
  "deepl_formality": None,
1413
  }
1414
 
1415
+ return *settings.values(),
1416
 
1417
  ##-------------------start-of-fetch_log_content()---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1418