File size: 260 Bytes
a18878f
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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}")