Download loda-rust/rust_project/loda-rust-cli/web/templates/arc/page_reply.html from Alignment-Lab-AI/ARC-stuff: direct link, hf CLI and curl.
- Browser
- Download file 3.15 kB
-
https://huggingface.co/datasets/Alignment-Lab-AI/ARC-stuff/resolve/main/loda-rust/rust_project/loda-rust-cli/web/templates/arc/page_reply.html
- Command line
-
hf download hf://datasets/Alignment-Lab-AI/ARC-stuff/loda-rust/rust_project/loda-rust-cli/web/templates/arc/page_reply.html
-
curl -L -o page_reply.html https://huggingface.co/datasets/Alignment-Lab-AI/ARC-stuff/resolve/main/loda-rust/rust_project/loda-rust-cli/web/templates/arc/page_reply.html
3.15 kB
| <html lang="en"><head><meta charset="utf-8"> | |
| <meta name="robots" content="noindex"> | |
| <title>Task {{task_id}}</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <meta name="format-detection" content="telephone=no"> | |
| <link media="all" rel="stylesheet" type="text/css" href="/static/page_shared.css"> | |
| <link media="all" rel="stylesheet" type="text/css" href="/static/page_inspect_task.css"> | |
| <link media="all" rel="stylesheet" type="text/css" href="/static/page_reply.css"> | |
| <script> | |
| function setupKeyboardShortcuts() { | |
| let keydownHandler = function(event) { | |
| if(event.defaultPrevented) { | |
| return; // Should do nothing if the default action has been cancelled | |
| } | |
| const isMetaKey = event.metaKey || event.ctrlKey; | |
| const isEnterKeyCode = (event.keyCode == 10) || (event.keyCode == 13); | |
| const isEscapeKeyCode = (event.keyCode == 27); | |
| // intercept CTRL+ENTER, and submit the form. | |
| if(isEnterKeyCode && isMetaKey) { | |
| console.log("ctrl+enter: submit form"); | |
| event.preventDefault(); // Suppress "double action" | |
| document.getElementById("replyForm").submit(); | |
| return; | |
| } | |
| }; | |
| window.addEventListener('keydown', keydownHandler, true); | |
| } | |
| </script> | |
| </head> | |
| <body onload="setupKeyboardShortcuts()"> | |
| <header class="titlebar-container"> | |
| <div class="titlebar-item titlebar-item-left"> | |
| <a class="seconday-button" href="{{ task_href }}">Task</a> | |
| <a class="seconday-button" href="{{ prompt_href }}">Prompt</a> | |
| </div> | |
| <div class="titlebar-item titlebar-item-center">Task {{task_id}} > Reply</div> | |
| <div class="titlebar-item titlebar-item-right"> | |
| <form id="replyForm" name="replyForm" method="post" enctype="application/x-www-form-urlencoded"> | |
| <input class="primary-button" type="submit" value="Submit reply (Ctrl+Enter)"> | |
| </form> | |
| </div> | |
| </header> | |
| <main id="main-outer"> | |
| <div id="main-inner"> | |
| <textarea form="replyForm" id="prompt-reply-textarea" name="reply_text" autofocus placeholder="Paste answer here, and submit">{{reply_text}}</textarea> | |
| <div class="split-screen"> | |
| <!-- Left content --> | |
| <div class="split-screen-half"> | |
| <h1>Expected</h1> | |
| {{ expected_image_html|safe }} | |
| </div> | |
| <!-- Right content --> | |
| <div class="split-screen-half"> | |
| <h1>Predicted</h1> | |
| {{ predicted_image_html|safe }} | |
| </div> | |
| </div> | |
| {% if post_reply_result %} | |
| <div> | |
| <h1>Result</h1> | |
| <pre>{{post_reply_result}}</pre> | |
| </div> | |
| {% endif %} | |
| </div> | |
| </main> | |
| <footer id="page-footer"> | |
| <div id="page-footer-item0" class="page-footer-item"> | |
| <!-- footer --> | |
| </div> | |
| <div id="page-footer-item1" class="page-footer-item"> | |
| <!-- footer --> | |
| </div> | |
| </footer> | |
| </body> | |
| </html> | |