handler UX update

This commit is contained in:
edbrz9 2023-01-02 19:08:36 +01:00
parent cac664284a
commit aa9b090879
1 changed files with 7 additions and 2 deletions

View File

@ -24,18 +24,23 @@
if (sizeof($output) > 0) {
echo '<h4>Here are your prompts!</h4>';
echo '<p>You can copy them one by one in ChatGPT. Why is it presented that way? Check out our <a href="./qna.php" target="_blank">Q&A page</a>.</p>';
echo '<p>You can copy and paste them one by one in ChatGPT.</p>';
echo "<p>Note that the first box contains the full transcript, it might be too long for ChatGPT, that's why you'll find below the transcript in several parts (for longer videos) and a prompt at the end that usually gives good results.</p>";
foreach ($output as $item) {
echo "<copbox>";
echo $item;
echo "</copbox>";
}
echo '<p>Why is it presented that way? Check out our <a href="./qna.php" target="_blank">Q&A page</a> or get the transcript of another video on the <a href="./index.php" target="_blank">homepage</a>.</p>';
} else {
echo '<section class="error">';
echo ' <p>Hum, looks like something went wrong...</p>';
echo " <p>The video might not have downloadable subtitles, or maybe it's not even a YouTube video?</p>";
echo '</section>';
echo '<p>Check out our <a href="./qna.php" target="_blank">Q&A</a> for more details or try again with another link on the <a href="./index.php" target="_blank">homepage</a>.</p>';
}
?>