StephanAkkerman / FluentAI

Automating language learning with the power of Artificial Intelligence. This repository presents FluentAI, a tool that combines Fluent Forever techniques with AI-driven automation. It streamlines the process of creating Anki flashcards, making language acquisition faster and more efficient.
https://akkerman.ai/FluentAI/
MIT License
9 stars 1 forks source link

Add logging instead of print #46

Closed StephanAkkerman closed 2 weeks ago

StephanAkkerman commented 3 weeks ago
  1. Description:

    • Problem: We should have the same approach for logging as I did with fintwit-bot, so we can have an info mode and a debug mode. A debug mode is only used for the developers and the info mode is what the users should see.

    • Solution: Replace all prints with logging.info and add a few logging.debug for VRAM, RAM use etc.

    • Prerequisites: None

  2. Tasks:

    • Add logging
  3. Additional context Add any other context or screenshots about the feature request here.

StephanAkkerman commented 2 weeks ago

The logging should also keep track of pc stats like:

StephanAkkerman commented 2 weeks ago

https://stackoverflow.com/questions/938733/total-memory-used-by-python-process

StephanAkkerman commented 2 weeks ago

Maybe also show the loading progress of the fasttext model, as that takes the longest