Streamlit component for Jina neural search
Project description
streamlit-jina
streamlit-jina lets you search text or images in your Streamlit app, using Jina's neural search framework.
Installation
streamlit-jina is distributed via PyPI:
pip install streamlit-jina
Examples
Using streamlit-jina is as simple as setting an endpoint and what type of thing you want to search for:
import streamlit as st
from streamlit_jina import jina
And then choose your search type and plug in your endpoint:
Text (example)
jina.text_search(endpoint="http://0.0.0.0:45678/api/search")
Images (example)
jina.image_search(endpoint="http://3.140.167.7:34567/api/search")
Parameters
You can pass several parameters to the component:
Parameter | Type | Details | |
---|---|---|---|
endpoint |
str |
Endpoint of your Jina instance | Required |
top_k |
int |
How many results you want returned | Optional |
hidden |
list |
Widgets you want hidden from user (endpoint , top_k ) |
Optional |
Todo
- Canvas drawing as input
- Audio/video file upload input
- Audio/video recording input
- Audio/video output widgets
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit-jina-0.1.1.tar.gz
(4.3 kB
view details)
File details
Details for the file streamlit-jina-0.1.1.tar.gz
.
File metadata
- Download URL: streamlit-jina-0.1.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3e4f1114ab9a8e73bb67a8058f1f0dc8e379b9c30e95b2559f582cff9fab34a |
|
MD5 | 3b473697f5bb19da2670bb189e3e140d |
|
BLAKE2b-256 | 02e0bcb04cf40bf392b9c722a3ca2a0a4630db698a470714b63f60cafbadb327 |