A few cosmetic updates (#504)

This commit is contained in:
Sebastian Raschka
2025-01-23 09:38:55 -06:00
committed by GitHub
parent 0911e71497
commit fd8d77a79d
3 changed files with 36 additions and 38 deletions

View File

@@ -103,9 +103,6 @@ def download_and_load_file(file_path, url):
text_data = response.read().decode("utf-8")
with open(file_path, "w", encoding="utf-8") as file:
file.write(text_data)
else:
with open(file_path, "r", encoding="utf-8") as file:
text_data = file.read()
with open(file_path, "r") as file:
data = json.load(file)