diff --git a/aiserver.py b/aiserver.py index f422a89b..425862ed 100644 --- a/aiserver.py +++ b/aiserver.py @@ -6382,6 +6382,7 @@ def UI_2_Pinning(data): @socketio.on('back') def UI_2_back(data): print("back") + koboldai_vars.actions.clear_unused_options() ignore = koboldai_vars.actions.pop() #==================================================================# @@ -6391,13 +6392,15 @@ def UI_2_back(data): def UI_2_redo(data): if len(koboldai_vars.actions.get_current_options()) == 1: koboldai_vars.actions.use_option(0) + #==================================================================# # Event triggered when user clicks the retry button #==================================================================# @socketio.on('retry') def UI_2_retry(data): - if koboldai_vars.numseqs == 1: + + if len(koboldai_vars.actions.get_current_options()) == 0: UI_2_back(None) koboldai_vars.actions.clear_unused_options() koboldai_vars.lua_koboldbridge.feedback = None diff --git a/static/koboldai.css b/static/koboldai.css index 57784cdb..c99773ef 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -199,6 +199,8 @@ input[type="range"]::-ms-fill-upper { z-index: 2; border-bottom-color: #FFF; } + + .tabrow:before { position: absolute; content: " "; @@ -300,6 +302,8 @@ input[type="range"]::-ms-fill-upper { padding-top: 6px; grid-area: minlabel; overflow: hidden; + padding: 5px; + padding-top: 0px; font-size: 0.8em; } @@ -307,6 +311,8 @@ input[type="range"]::-ms-fill-upper { padding-top: 6px; grid-area: maxlabel; overflow: hidden; + padding: 5px; + padding-top: 0px; text-align: right; font-size: 0.8em; } @@ -314,11 +320,15 @@ input[type="range"]::-ms-fill-upper { .setting_label { grid-area: label; overflow: hidden; + padding: 5px; + padding-top: 0px; } .setting_value { text-align: right; grid-area: value; + padding: 5px; + padding-top: 0px; background-color: inherit; color: inherit; border: none; diff --git a/templates/index_new.html b/templates/index_new.html index 378b508f..51045d63 100644 --- a/templates/index_new.html +++ b/templates/index_new.html @@ -45,20 +45,25 @@
-

If you want to generate a random prompt, insert a theme here:

- -

If you want to write your prompt, insert it here:

+
+ Prompt + Random Prompt +
+ {% endif %} {% endfor %} \ No newline at end of file