switch wording to embeddings

This commit is contained in:
Mary Hipp 2023-07-07 13:58:07 -04:00
parent 01b27a03a8
commit 294336b046
3 changed files with 8 additions and 8 deletions

View File

@ -107,7 +107,7 @@ export type SDFeature =
| 'seamless' | 'seamless'
| 'hires' | 'hires'
| 'lora' | 'lora'
| 'tiEmbedding' | 'embedding'
| 'vae'; | 'vae';
/** /**

View File

@ -72,7 +72,7 @@ const ParamNegativeConditioning = () => {
[dispatch, onClose, negativePrompt] [dispatch, onClose, negativePrompt]
); );
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled; const isEmbeddingEnabled = useFeatureStatus('embedding').isFeatureEnabled;
return ( return (
<FormControl> <FormControl>
@ -91,10 +91,10 @@ const ParamNegativeConditioning = () => {
resize="vertical" resize="vertical"
fontSize="sm" fontSize="sm"
minH={16} minH={16}
{...(isTiEmbeddingEnabled && { onKeyDown: handleKeyDown })} {...(isEmbeddingEnabled && { onKeyDown: handleKeyDown })}
/> />
</ParamEmbeddingPopover> </ParamEmbeddingPopover>
{!isOpen && isTiEmbeddingEnabled && ( {!isOpen && isEmbeddingEnabled && (
<Box <Box
sx={{ sx={{
position: 'absolute', position: 'absolute',

View File

@ -102,7 +102,7 @@ const ParamPositiveConditioning = () => {
[dispatch, onClose, prompt] [dispatch, onClose, prompt]
); );
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled; const isEmbeddingEnabled = useFeatureStatus('embedding').isFeatureEnabled;
const handleKeyDown = useCallback( const handleKeyDown = useCallback(
(e: KeyboardEvent<HTMLTextAreaElement>) => { (e: KeyboardEvent<HTMLTextAreaElement>) => {
@ -111,11 +111,11 @@ const ParamPositiveConditioning = () => {
dispatch(clampSymmetrySteps()); dispatch(clampSymmetrySteps());
dispatch(userInvoked(activeTabName)); dispatch(userInvoked(activeTabName));
} }
if (isTiEmbeddingEnabled && e.key === '<') { if (isEmbeddingEnabled && e.key === '<') {
onOpen(); onOpen();
} }
}, },
[isReady, dispatch, activeTabName, onOpen, isTiEmbeddingEnabled] [isReady, dispatch, activeTabName, onOpen, isEmbeddingEnabled]
); );
// const handleSelect = (e: MouseEvent<HTMLTextAreaElement>) => { // const handleSelect = (e: MouseEvent<HTMLTextAreaElement>) => {
@ -144,7 +144,7 @@ const ParamPositiveConditioning = () => {
/> />
</ParamEmbeddingPopover> </ParamEmbeddingPopover>
</FormControl> </FormControl>
{!isOpen && isTiEmbeddingEnabled && ( {!isOpen && isEmbeddingEnabled && (
<Box <Box
sx={{ sx={{
position: 'absolute', position: 'absolute',