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'
|
| 'seamless'
|
||||||
| 'hires'
|
| 'hires'
|
||||||
| 'lora'
|
| 'lora'
|
||||||
| 'tiEmbedding'
|
| 'embedding'
|
||||||
| 'vae';
|
| 'vae';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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',
|
||||||
|
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user