Is there a way to query the server directly without the front end? #86
-
Hey! I was wondering if there is some way to get images from querying the server with a request directly from code instead of through the front end. Love your work, hoping to incorporate it into a class project. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Hi, yes you can either load the knn index yourself (see the filter notebook) or you can all our backend (the API is described in the readme) for example using request lib in python |
Beta Was this translation helpful? Give feedback.
-
Hi Could you please give me some suggestion how to use the simplified_filter ? I check the file but confused about a couple of things:
Thank you very much! |
Beta Was this translation helpful? Give feedback.
-
@afiaka87 just landed PR #157 which I think is related to this question. |
Beta Was this translation helpful? Give feedback.
-
I'm sorry because I'm a fresh guy to use the CLIP model, so I just have a question about your backend part: how can I change the parameter "url" in "client = ClipClient(url="https://knn5.laion.ai/knn-service", indice_name="laion5B") " to change the backbone of your backend backbone(such as "ViT-B/32" and others) |
Beta Was this translation helpful? Give feedback.
Hi, yes you can either load the knn index yourself (see the filter notebook) or you can all our backend (the API is described in the readme) for example using request lib in python