);
}
diff --git a/packages/storyteller-home/src/pages/index/TtsResultsList.tsx b/packages/storyteller-home/src/pages/index/TtsResultsList.tsx
index 181d88a982..fedfc93f4b 100644
--- a/packages/storyteller-home/src/pages/index/TtsResultsList.tsx
+++ b/packages/storyteller-home/src/pages/index/TtsResultsList.tsx
@@ -1,18 +1,16 @@
-import React from 'react';
-import { BucketConfig } from '@storyteller/components/src/api/BucketConfig';
-import { JobState } from '@storyteller/components/src/jobs/JobStates';
-import { TtsInferenceJob } from '@storyteller/components/src/jobs/TtsInferenceJobs';
+import React from "react";
+import { BucketConfig } from "@storyteller/components/src/api/BucketConfig";
+import { JobState } from "@storyteller/components/src/jobs/JobStates";
+import { TtsInferenceJob } from "@storyteller/components/src/jobs/TtsInferenceJobs";
interface Props {
- ttsInferenceJobs: Array,
+ ttsInferenceJobs: Array;
}
function TtsResultsList(props: Props) {
+ let results: Array = [];
- let results : Array = [];
-
- props.ttsInferenceJobs.forEach(job => {
-
+ props.ttsInferenceJobs.forEach((job) => {
if (!job.maybeResultToken) {
let cssStyle = "message";
let stateDescription = "Pending...";
@@ -20,11 +18,17 @@ function TtsResultsList(props: Props) {
switch (job.jobState) {
case JobState.PENDING:
case JobState.UNKNOWN:
- stateDescription = job.maybeExtraStatusDescription == null ? "Pending..." : job.maybeExtraStatusDescription;
+ stateDescription =
+ job.maybeExtraStatusDescription == null
+ ? "Pending..."
+ : job.maybeExtraStatusDescription;
break;
case JobState.STARTED:
cssStyle = "message is-primary";
- stateDescription = job.maybeExtraStatusDescription == null ? "Started..." : job.maybeExtraStatusDescription;
+ stateDescription =
+ job.maybeExtraStatusDescription == null
+ ? "Started..."
+ : job.maybeExtraStatusDescription;
break;
case JobState.ATTEMPT_FAILED:
cssStyle = "message is-warning";
@@ -33,7 +37,8 @@ function TtsResultsList(props: Props) {
case JobState.COMPLETE_FAILURE:
case JobState.DEAD:
cssStyle = "message is-danger";
- stateDescription = "Failed Permanently. Please tell us in Discord so we can fix. :(";
+ stateDescription =
+ "Failed Permanently. Please tell us in Discord so we can fix. :(";
break;
case JobState.COMPLETE_SUCCESS:
cssStyle = "message is-success";
@@ -43,45 +48,42 @@ function TtsResultsList(props: Props) {
results.push(
-
+
-
- {stateDescription}
-
+
{stateDescription}
-
+
);
} else {
- let audioLink = new BucketConfig().getGcsUrl(job.maybePublicBucketWavAudioPath);
- let ttsPermalink = `https://fakeyou.com/tts/result/${job.maybeResultToken}`
+ let audioLink = new BucketConfig().getGcsUrl(
+ job.maybePublicBucketWavAudioPath
+ );
+ let ttsPermalink = `https://fakeyou.com/tts/result/${job.maybeResultToken}`;
results.push(
-
- {/*
+ {/*
{job.title}
*/}
-
- {job.title}
-
{job.rawInferenceText}
-
-
);
}
@@ -92,25 +94,26 @@ function TtsResultsList(props: Props) {
}
let title = ;
- if (results.length !== 0) {
- title = (
- <>
- {/* Vertical separation from above elements. */}
-
TTS Results
-
- Please note that we're currently recieving massive amounts of traffic.
- Creating an account on FakeYou.com places you into a higher priority queue.
-
-
- >
- );
+ if (results.length !== 0) {
+ title = (
+ <>
+
+
TTS Results
+
+ Please note that we're currently recieving massive amounts of
+ traffic. Creating an account on FakeYou.com places you into a higher
+ priority queue.
+
Working on speeding this up
@@ -118,7 +121,7 @@ function TtsResultsList(props: Props) {
Sorry this is slow. I'm scaling the cluster and fixing the caching strategy.