couple of bash functions might be useful #129
Replies: 6 comments 3 replies
-
Hey @rleaver152, thanks for the discussion! If I really understood your script, the first one ( pupyl --data_dir /path/to/your/data/dir index /path/to/images/ and the second one ( pupyl --data_dir /path/to/your/data/dir serve , is that right? |
Beta Was this translation helpful? Give feedback.
-
exactly - with the advantage of persisting named inditdual data databases
… On 29 Nov 2021, at 13:25, policratus ***@***.***> wrote:
Hey @rleaver152, thanks for the discussion!
If I really understood your script, the first one (reverse_search_images_my_pupyl_build) is something like:
pupyl --data_dir /path/to/your/data/dir index /path/to/images/
and the second one (reverse_search_images_my_pupyl):
pupyl --data_dir /path/to/your/data/dir serve
, is that right?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Hey @rleaver152, hence the following can achieve exactly what your script is doing: pupyl --data_dir /path/to/your/data/dir index /path/to/images/
pupyl --data_dir /path/to/your/data/dir serve Could you test it and return with your feedback? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
the real *wish list* is outputting the top [10] near matches as discussed a few weeks back. That would be awesome! Is it possible? (wish I knew how to do it!)
… On 7 Dec 2021, at 19:37, policratus ***@***.***> wrote:
Oh, sorry @rleaver152, you're right! It's a great way to just execute pupyl CLI, without the need to activate a virtual environment. Great work!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
-
Yep, for sure @rleaver152 this is possible! We just released |
Beta Was this translation helpful? Give feedback.
-
@rleaver152, this thread will be addressed also in #123. |
Beta Was this translation helpful? Give feedback.
-
These might save some time for people - I put these in my .bash_aliases file (Mac OSX). They assume a virtual environment in the pupyl-venv directory as set out.
The first builds the data directory named after the source top directory
The second serves from that same source.
In both cases they need the source directory as an argument. Hope this helps people.
Beta Was this translation helpful? Give feedback.
All reactions