mirror of
https://github.com/aljazceru/Image-Quote-Generator.git
synced 2025-12-20 07:24:24 +01:00
logo changes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
|
||||
def get_data(json_file):
|
||||
@@ -6,4 +7,10 @@ def get_data(json_file):
|
||||
jsonData = json.load(f)
|
||||
verses: str = jsonData['verses']
|
||||
refs: str = jsonData['references']
|
||||
return verses, refs
|
||||
return verses, refs
|
||||
|
||||
|
||||
def txt_to_json(text_file, output_folder):
|
||||
# TODO FINISH TEXT TO JSON
|
||||
with open(f'{text_file}', 'r', encoding='utf-8') as f:
|
||||
jsonData = json.load(f)
|
||||
|
||||
Reference in New Issue
Block a user