mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-14 05:42:32 +00:00
Merge branch 'feature/mvp' of https://github.com/storytold/storyteller-frontend into feature/mvp
This commit is contained in:
commit
ee37524a97
4 files changed
+42
-42
No files matched your search
@@ -21,6 +21,7 @@ export interface MediaFile {
|
||||
maybe_weight_creator: UserDetailsLight;
|
||||
maybe_cover_image_public_bucket_path: string;
|
||||
};
|
||||
maybe_text_transcript?: string;
|
||||
}
|
||||
|
||||
export enum MediaFileLookupError {
|
||||
|
||||
@@ -111,6 +111,11 @@ export default function AudioCard({
|
||||
: "Media Audio"}
|
||||
</h6>
|
||||
<p className="fs-7 opacity-75">{timeAgo}</p>
|
||||
{data.maybe_text_transcript && (
|
||||
<p className="fs-7 mt-2 two-line-ellipsis">
|
||||
{data.maybe_text_transcript}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
<AudioPlayer src={data.public_bucket_path} id={data.token} />
|
||||
<CardFooter
|
||||
|
||||
@@ -75,19 +75,13 @@ export default function MediaPage() {
|
||||
<MediaAudioComponent mediaFile={mediaFile} />
|
||||
|
||||
{/* Show TTS text input if it is a TTS result */}
|
||||
{mediaFile.public_bucket_path.includes("tts_inference_output") && (
|
||||
{mediaFile.maybe_text_transcript && (
|
||||
<div className="mt-4">
|
||||
<h5 className="fw-semibold">
|
||||
<FontAwesomeIcon icon={faSquareQuote} className="me-2" />
|
||||
Audio Text
|
||||
Audio Text Transcript
|
||||
</h5>
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
|
||||
do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
||||
Pellentesque elit ullamcorper dignissim cras tincidunt
|
||||
lobortis. Integer malesuada nunc vel risus commodo viverra
|
||||
maecenas accumsan lacus.
|
||||
</p>
|
||||
<p>{mediaFile.maybe_text_transcript}</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -401,14 +395,14 @@ export default function MediaPage() {
|
||||
}}
|
||||
/>
|
||||
<BookmarkButton
|
||||
{...{
|
||||
large: true,
|
||||
...bookmarks.makeProps({
|
||||
entityToken: token,
|
||||
entityType: "media_file",
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
{...{
|
||||
large: true,
|
||||
...bookmarks.makeProps({
|
||||
entityToken: token,
|
||||
entityType: "media_file",
|
||||
}),
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+25
-25
@@ -377,11 +377,36 @@ function SdInferencePanel({
|
||||
value: aspectRatio,
|
||||
}}
|
||||
/>
|
||||
<div>
|
||||
<Label label="Number of Generations" />
|
||||
<PremiumLock
|
||||
sessionSubscriptionsWrapper={sessionSubscriptionsWrapper}
|
||||
requiredPlan="pro"
|
||||
>
|
||||
<SegmentButtons
|
||||
{...{
|
||||
name: "batchCount",
|
||||
onChange,
|
||||
options: batchCountOpts,
|
||||
value: batchCount,
|
||||
}}
|
||||
/>
|
||||
</PremiumLock>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Accordion>
|
||||
<Accordion.Item title="Advanced">
|
||||
<div className="p-3 d-flex flex-column gap-3">
|
||||
<TempSelect
|
||||
{...{
|
||||
label: "Sampler",
|
||||
name: "sampler",
|
||||
onChange,
|
||||
options: samplerOpts,
|
||||
value: sampler,
|
||||
}}
|
||||
/>
|
||||
<div>
|
||||
<label className="sub-title">Seed</label>
|
||||
<div className="d-flex gap-2 align-items-center">
|
||||
@@ -402,15 +427,6 @@ function SdInferencePanel({
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<TempSelect
|
||||
{...{
|
||||
label: "Sampler",
|
||||
name: "sampler",
|
||||
onChange,
|
||||
options: samplerOpts,
|
||||
value: sampler,
|
||||
}}
|
||||
/>
|
||||
<NumberSlider
|
||||
{...{
|
||||
min: 1,
|
||||
@@ -458,22 +474,6 @@ function SdInferencePanel({
|
||||
]}
|
||||
/>
|
||||
)}
|
||||
<div>
|
||||
<Label label="Number of Generations" />
|
||||
<PremiumLock
|
||||
sessionSubscriptionsWrapper={sessionSubscriptionsWrapper}
|
||||
requiredPlan="pro"
|
||||
>
|
||||
<SegmentButtons
|
||||
{...{
|
||||
name: "batchCount",
|
||||
onChange,
|
||||
options: batchCountOpts,
|
||||
value: batchCount,
|
||||
}}
|
||||
/>
|
||||
</PremiumLock>
|
||||
</div>{" "}
|
||||
</div>
|
||||
</Accordion.Item>
|
||||
</Accordion>
|
||||
|
||||
Reference in new issue
Block a user