Choose generation mode automatically from starting image
This commit is contained in:
@@ -38,26 +38,7 @@
|
||||
</button>
|
||||
</div>
|
||||
<p v-else class="border-t border-white/10 px-4 py-2 text-xs text-zinc-500">MiniMax H3</p>
|
||||
<div class="grid grid-cols-2 border-t border-white/10">
|
||||
<button
|
||||
type="button"
|
||||
class="border-r border-white/10 px-3 py-2.5 text-left text-sm transition"
|
||||
:class="engineBtnClass(current === 'video' && videoStart === 'still')"
|
||||
@click="pickStart('still')"
|
||||
>
|
||||
<span class="block font-semibold">Still</span>
|
||||
<span class="text-xs opacity-80">Image to video</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="px-3 py-2.5 text-left text-sm transition"
|
||||
:class="engineBtnClass(current === 'video' && videoStart === 'text')"
|
||||
@click="pickStart('text')"
|
||||
>
|
||||
<span class="block font-semibold">Text</span>
|
||||
<span class="text-xs opacity-80">No start still</span>
|
||||
</button>
|
||||
</div>
|
||||
<p class="border-t border-white/10 px-4 py-2 text-xs text-zinc-400">{{ videoStart === 'still' ? 'Image to video' : 'Text to video' }} · automatic</p>
|
||||
</div>
|
||||
|
||||
<div
|
||||
@@ -157,7 +138,6 @@ const props = withDefaults(defineProps<{
|
||||
const emit = defineEmits<{
|
||||
select: [kind: 'video' | 'image']
|
||||
'video-engine': [engine: 'minimax' | 'ltx']
|
||||
'video-start': [start: 'still' | 'text']
|
||||
'image-engine': [engine: 'flux' | 'krea']
|
||||
'music-engine': [engine: 'ace' | 'yue']
|
||||
}>()
|
||||
@@ -172,11 +152,6 @@ function pickVideo(engine: 'minimax' | 'ltx') {
|
||||
if (props.current !== 'video') emit('select', 'video')
|
||||
}
|
||||
|
||||
function pickStart(start: 'still' | 'text') {
|
||||
emit('video-start', start)
|
||||
if (props.current !== 'video') emit('select', 'video')
|
||||
}
|
||||
|
||||
function pickImage(engine: 'flux' | 'krea') {
|
||||
emit('image-engine', engine)
|
||||
if (props.current !== 'image') emit('select', 'image')
|
||||
|
||||
Reference in New Issue
Block a user