semantha-streamlit-compare: semantha building blocks for Streamlit apps
This project gives you an idea of how to use our component for building applications with streamlit. And all of this using semantha's native capabilities to process semantics in text.
tl;dr: using Streamlit, you can employ semantha's semantic comparison with just three lines of code (see below).
Which Components Are Involved?
Streamlit.io offers easy GUI implementations. semantha.ai is a semantic processing platform which provides a REST/API for many use cases, end systems, etc.
🚀 Quickstart
You can install semantha-streamlit-compare from pip:
pip install semantha-streamlit-compare
Then put the following example code in a file.
from semantha_streamlit_compare.components.compare import SemanticCompare
compare = SemanticCompare()
compare.build_input(sentences=("First sentence", "Second sentence"))
🎛 Setup, Secret, and API Key
To use the component, you need to request a secrets.toml file. You can request that at support@thingsthinking.atlassian.net
The file is structured as follows:
[semantha]
server_url="URL_TO_SERVER"
api_key="YOUR_API_KEY_ISSUED"
domain="USAGE_DOMAIN_PROVIDED_TO_YOU"
documenttype="document_with_contradiction_enabled"
Metadata
Release files for semantha-streamlit-compare 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| semantha_streamlit_compare-0.2.1.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| semantha_streamlit_compare-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / semantha_streamlit_compare-0.2.1.tar.gz
| Download URL | semantha_streamlit_compare-0.2.1.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3b3154966be7488a25507fb9b49dd40b81d11870ea056e10094ddb2d07e22c03
|
|
BLAKE2b-256 checksum How to use checksums |
7c5058b1e400eac72b90716c9c9c0ffba798e6bf21ab4c0cb4be02cd5fa3f68b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / semantha_streamlit_compare-0.2.1-py3-none-any.whl
| Download URL | semantha_streamlit_compare-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd52fd6ff4feb77619bd66b1a91f38f73d5e976b1f6c5d92098f8e36512da96b
|
|
BLAKE2b-256 checksum How to use checksums |
471b16074f01ad94dcf16864ea0f384edb3a0b977d53a0b4c55845d98e675781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|