Skip to content

Commit 84bbfdc

Browse files
committed
fix platform description in docs
1 parent fa5b895 commit 84bbfdc

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
site_name: trubrics-sdk
2-
site_description: Combine data science knowledge with business user feedback to validate machine learning
2+
site_description: The first user analytics platform for AI.
33
repo_url: https://github.com/trubrics/trubrics-sdk.git
44
repo_name: trubrics/trubrics-sdk
55
plugins:

trubrics/integrations/streamlit/collect.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def st_feedback(
6363
prompt_id: id of the prompt object
6464
tags: a list of tags for the feedback
6565
metadata: any data to save with the feedback
66-
user_response: a dict of user response to save with the feedback for feedback_type='custom'
6766
user_id: an optional reference to a user, for example a username if there is a login, a cookie ID, etc
6867
key: a key for the streamlit components (necessary if calling this method multiple times with the same type)
6968
open_feedback_label: label of optional text_input for "faces" or "thumbs" feedback_type
@@ -76,18 +75,10 @@ def st_feedback(
7675
if key is None:
7776
key = feedback_type
7877
if feedback_type == "textbox":
79-
if user_response:
80-
raise ValueError(
81-
"For feedback_type='textbox', user_response is set inside the component (must be None)."
82-
)
8378
text = self.st_textbox_ui(key, label=open_feedback_label)
8479
if text:
8580
user_response = {"type": feedback_type, "score": None, "text": text}
8681
elif feedback_type in ("thumbs", "faces"):
87-
if user_response:
88-
raise ValueError(
89-
f"For feedback_type='{feedback_type}', user_response is set inside the component (must be None)."
90-
)
9182
user_response = streamlit_feedback(
9283
feedback_type=feedback_type,
9384
optional_text_label=open_feedback_label,

0 commit comments

Comments
 (0)