mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
switch wording to embeddings
This commit is contained in:
parent
01b27a03a8
commit
294336b046
@ -107,7 +107,7 @@ export type SDFeature =
|
||||
| 'seamless'
|
||||
| 'hires'
|
||||
| 'lora'
|
||||
| 'tiEmbedding'
|
||||
| 'embedding'
|
||||
| 'vae';
|
||||
|
||||
/**
|
||||
|
@ -72,7 +72,7 @@ const ParamNegativeConditioning = () => {
|
||||
[dispatch, onClose, negativePrompt]
|
||||
);
|
||||
|
||||
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled;
|
||||
const isEmbeddingEnabled = useFeatureStatus('embedding').isFeatureEnabled;
|
||||
|
||||
return (
|
||||
<FormControl>
|
||||
@ -91,10 +91,10 @@ const ParamNegativeConditioning = () => {
|
||||
resize="vertical"
|
||||
fontSize="sm"
|
||||
minH={16}
|
||||
{...(isTiEmbeddingEnabled && { onKeyDown: handleKeyDown })}
|
||||
{...(isEmbeddingEnabled && { onKeyDown: handleKeyDown })}
|
||||
/>
|
||||
</ParamEmbeddingPopover>
|
||||
{!isOpen && isTiEmbeddingEnabled && (
|
||||
{!isOpen && isEmbeddingEnabled && (
|
||||
<Box
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
|
@ -102,7 +102,7 @@ const ParamPositiveConditioning = () => {
|
||||
[dispatch, onClose, prompt]
|
||||
);
|
||||
|
||||
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled;
|
||||
const isEmbeddingEnabled = useFeatureStatus('embedding').isFeatureEnabled;
|
||||
|
||||
const handleKeyDown = useCallback(
|
||||
(e: KeyboardEvent<HTMLTextAreaElement>) => {
|
||||
@ -111,11 +111,11 @@ const ParamPositiveConditioning = () => {
|
||||
dispatch(clampSymmetrySteps());
|
||||
dispatch(userInvoked(activeTabName));
|
||||
}
|
||||
if (isTiEmbeddingEnabled && e.key === '<') {
|
||||
if (isEmbeddingEnabled && e.key === '<') {
|
||||
onOpen();
|
||||
}
|
||||
},
|
||||
[isReady, dispatch, activeTabName, onOpen, isTiEmbeddingEnabled]
|
||||
[isReady, dispatch, activeTabName, onOpen, isEmbeddingEnabled]
|
||||
);
|
||||
|
||||
// const handleSelect = (e: MouseEvent<HTMLTextAreaElement>) => {
|
||||
@ -144,7 +144,7 @@ const ParamPositiveConditioning = () => {
|
||||
/>
|
||||
</ParamEmbeddingPopover>
|
||||
</FormControl>
|
||||
{!isOpen && isTiEmbeddingEnabled && (
|
||||
{!isOpen && isEmbeddingEnabled && (
|
||||
<Box
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
|
Loading…
Reference in New Issue
Block a user