This is the project for a streamlit component which uses semantha semantic compare.
Project description
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"
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
Built Distribution
File details
Details for the file semantha_streamlit_compare-0.2.1.tar.gz
.
File metadata
- Download URL: semantha_streamlit_compare-0.2.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b3154966be7488a25507fb9b49dd40b81d11870ea056e10094ddb2d07e22c03 |
|
MD5 | 37b2f5afc788de3934c7278865180d8b |
|
BLAKE2b-256 | 7c5058b1e400eac72b90716c9c9c0ffba798e6bf21ab4c0cb4be02cd5fa3f68b |
File details
Details for the file semantha_streamlit_compare-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: semantha_streamlit_compare-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd52fd6ff4feb77619bd66b1a91f38f73d5e976b1f6c5d92098f8e36512da96b |
|
MD5 | 6049b247b2d52af82eab334628cf8b2e |
|
BLAKE2b-256 | 471b16074f01ad94dcf16864ea0f384edb3a0b977d53a0b4c55845d98e675781 |