mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 16:38:14 +00:00
Merge pull request #21 from storytold/echelon-add-tts-debug
Add "debug" metadata to TTS result view, which aids in debugging
This commit is contained in:
2 files changed
+15
No files matched your search
@@ -30,6 +30,8 @@ export interface TtsResult {
|
||||
|
||||
generated_by_worker: string,
|
||||
|
||||
is_debug_request: boolean,
|
||||
|
||||
created_at: string,
|
||||
updated_at: string,
|
||||
|
||||
|
||||
@@ -73,6 +73,17 @@ function TtsResultViewFc(props: Props) {
|
||||
|
||||
//const currentlyDeleted = !!ttsInferenceResult?.maybe_moderator_fields?.mod_deleted_at || !!ttsInferenceResult?.maybe_moderator_fields?.user_deleted_at;
|
||||
|
||||
let debugRows = null;
|
||||
|
||||
if (ttsInferenceResult?.is_debug_request) {
|
||||
debugRows = (
|
||||
<tr>
|
||||
<th>Was Debug Mode?</th>
|
||||
<td>true</td>
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
let moderatorRows = null;
|
||||
|
||||
if (props.sessionWrapper.canDeleteOtherUsersTtsResults() || props.sessionWrapper.canDeleteOtherUsersTtsModels()) {
|
||||
@@ -284,6 +295,8 @@ function TtsResultViewFc(props: Props) {
|
||||
{ttsInferenceResult.generated_by_worker}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{debugRows}
|
||||
|
||||
{moderatorRows}
|
||||
|
||||
|
||||
Reference in new issue
Block a user