streamlit_text_ratings enables you to rate the text data
Project description
# streamlit-text-rating
---
A Streamlit component for rating text
## Installation
---
### Using pip
[![PyPi Version](https://badge.fury.io/py/streamlit-text-rating.svg)](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
![Streamlit Text Rating](https://raw.githubusercontent.com/TVS-Motor-Company/streamlit-text-rating/main/st_text_rater.gif "Streamlit Text Rating")
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
Close
Hashes for streamlit_text_rating_component-0.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2bceac1ab7b7d97bc38eb1bd1ebceaa22f23339126f0503f7c91d39b073472e |
|
MD5 | a6b36532b060eb4230f7c16e17d9cc2a |
|
BLAKE2b-256 | 404a22e8a75451e4c1e1c12af11c3a20539ac8158fb764385308b777f512f4a7 |
Close
Hashes for streamlit_text_rating_component-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1ea0b9aa6edc1cb6db07eb19707c297aade0e8ecba235986ba064f3d8ab96f3 |
|
MD5 | 43668555ce3aa48123358dc87f5c9701 |
|
BLAKE2b-256 | 431dc1e244e9593dea2823e5871db4e7ae1729e0f9fca5b9703f189907307f99 |