streamlit_text_ratings enables you to rate the text data
Project description
# streamlit-text-rating
---
A Streamlit component for rating text
## Installation
---
### Using pip
[](https://pypi.org/project/streamlit-text-rating/)
You can install using the pip package manager by running
```sh
pip install streamlit-text-rating
```
Alternatively, you could install the latest version directly from Github:
```sh
pip install https://github.com/TVS-Motor-Company/streamlit-text-rating/streamlit-text-rating/archive/master.zip
```
### From source
Download the source code by cloning the repository or by pressing 'Download ZIP' on this page.
Install by navigating to the proper directory and running:
```sh
python setup.py install
```
## Usage
---
```python
from streamlit_text_rating.st_text_rater import st_text_rater
import streamlit as st
st.title("Awesome App")
for text in ["Is this text helpful?", "Do you like this text?"]:
response = st_text_rater(text=text)
# st.write(f"response --> {response}")
```
### Output

Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_text_rating_component-0.1.9.tar.gz.
File metadata
- Download URL: streamlit_text_rating_component-0.1.9.tar.gz
- Upload date:
- Size: 711.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2bceac1ab7b7d97bc38eb1bd1ebceaa22f23339126f0503f7c91d39b073472e
|
|
| MD5 |
a6b36532b060eb4230f7c16e17d9cc2a
|
|
| BLAKE2b-256 |
404a22e8a75451e4c1e1c12af11c3a20539ac8158fb764385308b777f512f4a7
|
File details
Details for the file streamlit_text_rating_component-0.1.9-py3-none-any.whl.
File metadata
- Download URL: streamlit_text_rating_component-0.1.9-py3-none-any.whl
- Upload date:
- Size: 719.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1ea0b9aa6edc1cb6db07eb19707c297aade0e8ecba235986ba064f3d8ab96f3
|
|
| MD5 |
43668555ce3aa48123358dc87f5c9701
|
|
| BLAKE2b-256 |
431dc1e244e9593dea2823e5871db4e7ae1729e0f9fca5b9703f189907307f99
|