Added loading svg, but it needs to by stylized and updated for better placement. Despite some changes to routes.py to improve the gpt4all efficiency, it is still 80-95 seconds before it generates a response. I might have to start generating responses in a DB on the first page load so that the UI/UX is faster.
This commit is contained in:
@ -13,8 +13,13 @@
|
||||
action="{{ url_for("prompt_all")}}"
|
||||
method="post">
|
||||
<input class="prompt-button"
|
||||
id="fields" type="submit" value="Submit Prompt all Only">
|
||||
id="fields" type="submit" value="Click for Inspiration"
|
||||
onclick="$('#loading').show();">
|
||||
</form>
|
||||
<div id="loading" style="display:none;">
|
||||
<img src={{ url_for('static', filename='tube-spinner.svg') }} width="200px">
|
||||
Please be patient as we load up on inspiration!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user