diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 458e6d3..42429ce 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -93,6 +93,9 @@ function App() { } } + // Check if text is long (more than 5000 characters as a threshold) + const isLongText = text.length > 5000 + const handleDownload = () => { if (!audioUrl) return @@ -130,18 +133,25 @@ function App() { )} {phase === 'assignment' && ( - + <> + {isLongText && ( +
+ Generation may take several minutes for very long content. +
+ )} + + )} {phase === 'generated' && audioUrl && ( @@ -150,6 +160,12 @@ function App() { onDownload={handleDownload} /> )} + + {isGenerating && isLongText && ( +
+ Generation may take several minutes for very long content. Please be patient... +
+ )} )