Skip to content

Commit 8f199a1

Browse files
committed
Use utf-8
1 parent a4b8e75 commit 8f199a1

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

e2e-tests/cmd_test.py

-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,6 @@ def _get_utterances(self, directory):
3939
utterances, _, _ = utterance.load_utterances()
4040
return utterances
4141

42-
# metadata_file = os.path.join(directory, "utterance_metadata_cat.json")
43-
# with open(metadata_file, encoding="utf-8") as json_data:
44-
# data = json.load(json_data)
45-
# utterances = data["utterances"]
46-
# return utterances
47-
4842
def _assert_dubbing_action(self, directory):
4943
utterances = self._get_utterances(directory)
5044
text_array = [entry["translated_text"] for entry in utterances]

open_dubbing/utterance.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def _get_file_name(self):
4444
def load_utterances(self) -> tuple[Any, PreprocessingArtifacts, Any]:
4545
utterance_metadata_file = self._get_file_name()
4646

47-
with open(utterance_metadata_file, "r") as file:
48-
# with open(utterance_metadata_file, "r", encoding="utf-8") as file:
47+
with open(utterance_metadata_file, "r", encoding="utf-8") as file:
4948
data = json.load(file)
5049
utterances = data["utterances"]
5150
preprocessing_output = PreprocessingArtifacts(

0 commit comments

Comments
 (0)