Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# ...existing code...
from utils.cache import invalidate_cache


# Add cache reset option when application starts
def initialize_app():
# ...existing code...
# Clear any stale cache data on startup
invalidate_cache()
# ...existing code...


# If there's a refresh functionality, update it to clear relevant caches
def refresh_data():
# ...existing code...
# Clear specific caches that need refreshing
invalidate_cache("albums:get_all_albums")
invalidate_cache("folder_structure:get_folder_structure")
# ...existing code...


# ...existing code...
3 changes: 2 additions & 1 deletion backend/app/ner/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import cv2
import time


# Run the ner_onnx.py to create the onnx model in the models folder
def ner_marking(text1):
# change the path is required
Expand Down Expand Up @@ -167,7 +168,7 @@ def scanning(names):
gray, scaleFactor=1.1, minNeighbors=5, minSize=(30, 30)
)

for (x, y, w, h) in faces:
for x, y, w, h in faces:
cv2.rectangle(frame, (x, y), (x + w, y + h), (0, 0, 255), 2)
cv2.putText(
frame,
Expand Down
8 changes: 5 additions & 3 deletions backend/app/routes/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,11 @@ def get_class_ids(path: str = Query(...)):
class_ids = get_objects_db(path)
return ClassIDsResponse(
success=True,
message="Successfully retrieved class IDs"
if class_ids
else "No class IDs found for the image",
message=(
"Successfully retrieved class IDs"
if class_ids
else "No class IDs found for the image"
),
data=class_ids if class_ids else "None",
)

Expand Down
1 change: 1 addition & 0 deletions backend/app/schemas/facetagging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pydantic import BaseModel
from typing import List, Dict


# Response Model
class SimilarPair(BaseModel):
image1: str
Expand Down
34 changes: 0 additions & 34 deletions core/album_manager.py

This file was deleted.

37 changes: 0 additions & 37 deletions core/folder_manager.py

This file was deleted.

25 changes: 0 additions & 25 deletions core/image_processor.py

This file was deleted.

57 changes: 30 additions & 27 deletions frontend/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion frontend/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "PictoPy"
name = "picto_py" # Changed from PictoPy to follow snake_case convention
version = "0.0.0"
description = "A Tauri App"
authors = ["you"]
Expand Down Expand Up @@ -28,6 +28,9 @@ tempfile = "3"
arrayref = "0.3.6"
directories = "4.0"
chrono = { version = "0.4.26", features = ["serde"] }
lazy_static = "1.4.0"
rayon = "1.7.0"
regex = "1.8.1"

base64 = "0.21.0"
rand = "0.8.5"
Expand Down
Empty file.
Loading