Hacker News new | ask | show | jobs
by hotgeart 1745 days ago
I wanted this meme : https://knowyourmeme.com/memes/for-five-minutes

"Shrek 5 minutes"

None of the results is Shrek.

Ok... may be something simpler: "Shrek"

Same...

3 comments

I tried finding this - https://knowyourmeme.com/memes/who-killed-hannibal

"Eric andre shoot" | "Eric andre kill"...I'm getting the drake meme.

But searching for "Who killed" works.

Also this might just be me but it would be nice if the search bar also worked by pressing "Enter" after a query.

That's a restriction in the front-end framework unfortunately :(

Really hoping Streamlit supports that in future.

Hey, Streamlit co-founder here.

This should just work out of the box in Streamlit:

caption = st.text_input("Meme subject or caption")

if caption: # do search here

If that doesn't work for you, do you mind posting in our forums? I'd love to get to the bottom of this!

Forums → https://discuss.streamlit.io

(Cool app, btw!)

You can see this link. It explains why the meme search still needs a bit of work: http://examples.jina.ai:8501/?tab=Dude,%20this%20meme%20sear...
Likely because: a) Only so many meme types in the full dataset b) We only indexed 1000 memes to build a toy example

Had I known it would blow up I would've indexed more!