Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
RainRat committed Apr 26, 2024
1 parent eeb9cc3 commit c8b61d6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion model/pretokenizer/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def bos(self):
def eod(self):
if self._eod_id is not None:
return self._eod_id
return self._eos_id # in case noe eod we can patch this up with an eos
return self._eos_id # in case no eod we can patch this up with an eos

@property
def eos_token_id(self):
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Chat/ChatConversationTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const TreeChildren = ({
{...props}
canRetry={isLeaf}
showEncourageMessage={props.showEncourageMessage && isLeaf}
// TODO refacor away from this dirty hack
// TODO refactor away from this dirty hack
id={isLeaf && currentTree.role === "assistant" ? LAST_ASSISTANT_MESSAGE_ID : undefined}
data-id={currentTree.id}
pagingSlot={
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Messages/LabelInputGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface LabelInputGroupProps {
*
* Note that Label is a type that include a name, like "spam" or "fails_task", and a widget value,
* like "yes_no".
* The LabelYesNoGroup will then look for spam.question or fails_task.qustion strings in the translation files.
* The LabelYesNoGroup will then look for spam.question or fails_task.question strings in the translation files.
*
*/
export const LabelInputGroup = ({
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Tasks/Task/Task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const Task = () => {
case "DEFAULT_WARN":
return { mode: "EDIT", replyValidity: "DEFAULT" };
case "SUBMITTED":
// allow return to edit from subbmitted mode (error happen during submitting task)
// allow return to edit from submitted mode (error happen during submitting task)
return { mode: "EDIT", replyValidity: "VALID" };
default:
return status;
Expand Down

0 comments on commit c8b61d6

Please sign in to comment.