Muy apropiado en estos tiempos que corren en los que parece que la ley del más fuerte está a punto de imponerse.
Puntos suspensivos...
Friday, 14 February 2025
El pájaro grande se come al pequeño
Friday, 7 February 2025
Bluesky posts and followers
Now that I am posting a random photo each day, I find myself looking forward to see which one will be posted. A few days ago an old photo got almost 300 likes and yesterday another old photo got also ~300 likes and over 30 reposts.
I have also been looking at my followers in Bluesky, most of which follow me because of one list I am in.
Monday, 3 February 2025
Even more flet adventures
The automated posts of random photos started well, however I wanted to have customized messages for each photo. That means writing a short message for each one. Not difficult, but tedious. Enter Gemini and flet.
I used this prompt to create a skeleton script of what I wanted. Of course the script did not work out of the box even after a few attempts. Still, good enough to start the debugging and make something useful.
I would like to create a flet app which allows the following:
-select folder with images (jpg and png file formats). Do not use filedialog for this. Use filepicker
-for each photo, the user can create image captions which are saved in separate text files (same name as photo, just with .txt extension)
I ended up with less than 80 lines of code to create this mini tool, which made the whole task a lot easier. At some point I may give a try to one of the image captioning ai models in Huggingface. Just not sure I want my photos captioned without supervision and the posted.
PS: I downloaded the Salesforce/blip-image-captioning-base model from Huggingface and gave it a try. Considering the low effort the hit rate is not bad. Still, not something I would trust being posted without supervision. The automated text generated for the five photos above was: