Metadata-Version: 2.1
Name: streamlit-text-rating-component
Version: 0.1.9
Summary: streamlit_text_ratings enables you to rate the text data
Home-page: https://github.com/TVS-Motor-Company/streamlit-text-rating
Author: Ashish Rai, Naga Budigam, modified by Granit Luzhnica
Author-email: ashishraics512@gmail.com, nagaraju.iiit@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Description-Content-Type: text/plain
Requires-Dist: streamlit (>=1.0.0)

# 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")


