| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | <!doctype html> |
| | <html lang="en"> |
| | <head> |
| | <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css"> |
| | <meta charset="utf-8"> |
| | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| | <title>Automatic Speech Recognition</title> |
| | <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> |
| |
|
| | <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> |
| | <link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.light_green-lime.min.css"> |
| | <script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script> |
| | <style> |
| | .ui-resizable-se { |
| | bottom: 17px; |
| | } |
| | |
| | </style> |
| | <script src="https://code.jquery.com/jquery-1.12.4.js"></script> |
| | <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> |
| |
|
| | |
| | <script src="https://unpkg.com/htmx.org@1.3.1"></script> |
| | </head> |
| | <body> |
| |
|
| | |
| | <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header"> |
| | <header class="mdl-layout__header"> |
| | <div class="mdl-layout__header-row"> |
| | |
| | <span class="mdl-layout-title">NeMo Automatic Speech Recognition Demo</span> |
| | |
| | <div class="mdl-layout-spacer"></div> |
| | |
| | <nav class="mdl-navigation mdl-layout--large-screen-only"> |
| | <a class="mdl-navigation__link" href="#top">Top</a> |
| | </nav> |
| | </div> |
| | </header> |
| | <div class="mdl-layout__drawer"> |
| | <span class="mdl-layout-title">ASR Transcription</span> |
| | <nav class="mdl-navigation"> |
| | <a class="mdl-navigation__link" href="https://github.com/NVIDIA/NeMo">Github</a> |
| | </nav> |
| | </div> |
| | <main class="mdl-layout__content"> |
| | <div class="page-content"> |
| |
|
| | |
| | <div id="top"></div> |
| |
|
| | <form id="model_names_form" action="" enctype="multipart/form-data" style="display: inline;"> |
| |
|
| | <h5> Model Name : |
| |
|
| | |
| | <div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label" style="width: 25%"> |
| | <select name="model_names_select" class="mdl-textfield__input" id="model_names_select_id"> |
| | {% for x in model_names %} |
| | <option value="{{ x }}" {% if loop.first %} SELECTED{% endif %}>{{ x }}</option> |
| | {% endfor %} |
| | </select> |
| | </div> |
| |
|
| | |
| | <button class="btn mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" |
| | hx-post="{{ url_for('initialize_model') }}" hx-target="this" hx-swap="afterend" |
| | hx-encoding="multipart/form-data"> |
| | Load Model |
| | </button> |
| |
|
| | |
| | |
| |
|
| | <br> |
| | NeMo File : |
| | <input type="file" name="nemo_model" accept=".nemo" id="nemo_model_file"/> |
| |
|
| | |
| |
|
| | </h5> |
| |
|
| | |
| | <label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="use_gpu_ckbx_id"> |
| | <input type="checkbox" id="use_gpu_ckbx_id" name="use_gpu_ckbx" class="mdl-checkbox__input" checked> |
| | <span class="mdl-checkbox__label">Use GPU (if available)</span> |
| | </label> |
| |
|
| | </form> |
| |
|
| | <hr> |
| | <br> |
| |
|
| | |
| | <form action="" enctype="multipart/form-data"> |
| | <input type="file" name="file" accept=".wav" multiple=""/> |
| |
|
| | <button class="btn mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" |
| | hx-post="{{ url_for('upload_audio_files') }}" |
| | hx-target="this" hx-swap="outerHTML" hx-encoding="multipart/form-data"> |
| | Upload audio file(s) |
| | </button> |
| |
|
| | <button class="btn mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" |
| | hx-post="{{ url_for('remove_audio_files') }}" |
| | hx-target="this" hx-swap="outerHTML"> |
| | Remove all files |
| | </button> |
| | </form> |
| | <hr> |
| | <br> |
| |
|
| | |
| | <button class="btn mdl-button mdl-js-button mdl-button--raised mdl-button--colored mdl-js-ripple-effect" |
| | hx-post="{{ url_for('transcribe') }}" hx-target="#transcribeResults"> |
| | Transcribe all |
| | </button> |
| |
|
| | <div id="transcribeResults"></div> |
| |
|
| |
|
| | |
| |
|
| | <div id="toast" class="mdl-js-snackbar mdl-snackbar"> |
| | <div class="mdl-snackbar__text"></div> |
| | <button class="mdl-snackbar__action" type="button"></button> |
| | </div> |
| |
|
| | </div> |
| | </main> |
| | </div> |
| |
|
| | </body> |
| | </html> |