mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 01:18:34 +00:00
share results in common
This commit is contained in:
1 parent
b8c2359bac
commit
2d87d3d882
4 files changed
+16
-5
No files matched your search
+4
-1
@@ -29,7 +29,10 @@ function TtsInferenceResultListFc(props: Props) {
|
||||
<code>audio</code> element.
|
||||
</audio>
|
||||
|
||||
<Link to={ttsPermalink}>Permalink & download</Link>
|
||||
<Link
|
||||
to={ttsPermalink}
|
||||
className="button is-normal is-outlined is-info"
|
||||
>Permalink & download</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import { SessionWrapper } from '../../session/SessionWrapper';
|
||||
import { v1 as uuidv1 } from 'uuid';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { TtsInferenceJob } from '../../App';
|
||||
import { TtsInferenceResultListFc } from './TtsInferenceResultsListFc';
|
||||
import { TtsInferenceResultListFc } from '../common/TtsInferenceResultsListFc';
|
||||
|
||||
interface TtsModelListResponsePayload {
|
||||
success: boolean,
|
||||
|
||||
@@ -7,7 +7,7 @@ import { SessionWrapper } from '../../session/SessionWrapper';
|
||||
import { TtsInferenceJob } from '../../App';
|
||||
import { v1 as uuidv1 } from 'uuid';
|
||||
import { EnqueueJobResponsePayload } from '../tts_model_list/TtsModelFormFc';
|
||||
import { TtsInferenceResultListFc } from '../tts_model_list/TtsInferenceResultsListFc';
|
||||
import { TtsInferenceResultListFc } from '../common/TtsInferenceResultsListFc';
|
||||
|
||||
interface TtsModelViewResponsePayload {
|
||||
success: boolean,
|
||||
@@ -206,7 +206,7 @@ function TtsModelViewFc(props: Props) {
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
|
||||
<TtsInferenceResultListFc ttsInferenceJobs={props.ttsInferenceJobs} />
|
||||
<br />
|
||||
</div>
|
||||
|
||||
@@ -113,9 +113,17 @@ function TtsResultViewFc(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
let headingTitle = 'TTS Result';
|
||||
let subtitle = <span />;
|
||||
if (ttsInferenceResult.tts_model_title !== undefined && ttsInferenceResult.tts_model_title !== null) {
|
||||
headingTitle = `${ttsInferenceResult.tts_model_title}`;
|
||||
subtitle = <h3 className="subtitle is-3"> TTS Result</h3>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h1 className="title is-1"> TTS Result </h1>
|
||||
<h1 className="title is-1"> {headingTitle} </h1>
|
||||
{subtitle}
|
||||
|
||||
<audio
|
||||
controls
|
||||
|
||||
Reference in new issue
Block a user