handler UX update
This commit is contained in:
parent
cac664284a
commit
aa9b090879
|
@ -24,18 +24,23 @@
|
||||||
|
|
||||||
if (sizeof($output) > 0) {
|
if (sizeof($output) > 0) {
|
||||||
echo '<h4>Here are your prompts!</h4>';
|
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) {
|
foreach ($output as $item) {
|
||||||
echo "<copbox>";
|
echo "<copbox>";
|
||||||
echo $item;
|
echo $item;
|
||||||
echo "</copbox>";
|
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 {
|
} else {
|
||||||
echo '<section class="error">';
|
echo '<section class="error">';
|
||||||
echo ' <p>Hum, looks like something went wrong...</p>';
|
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 " <p>The video might not have downloadable subtitles, or maybe it's not even a YouTube video?</p>";
|
||||||
echo '</section>';
|
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>';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue