Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Apr 3, 2024
1 parent 4f4257a commit 4d8f9cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ def download_image(url):
print(f"Error downloading image from URL: {url}. Error: {e}")
return None

# Function to create labels for each application data
# Function to create labels for each application data
# Function to create labels for each application data
def create_labels():
data_dir = "data"
for filename in os.listdir(data_dir):
# Get the list of filenames and sort them
filenames = sorted(os.listdir(data_dir) , reverse=True)
for filename in filenames:
if filename.endswith(".json"):
try:
with open(os.path.join(data_dir, filename), "r") as f:
Expand Down

0 comments on commit 4d8f9cd

Please sign in to comment.