Commit Graph

3243 Commits

Author SHA1 Message Date
LightSaveUs
aac2bea87f Privacy Password Tooltip Refinement 2022-11-02 01:57:10 +03:00
LightSaveUs
42ff1c53e4 Stored Prompt -> Contextual Prompt 2022-11-02 01:56:25 +03:00
ebolam
1f2e755f9a Merge pull request #278 from Viningr/master
Updated Image Gen function to support local stable-diffusion-webui API endpoint.
2022-11-01 16:06:37 -04:00
ebolam
09e1bb8366 Add back in horde generation if statement 2022-11-01 15:03:47 -04:00
ebolam
6c146b805d Remove debug prints 2022-11-01 14:58:55 -04:00
ebolam
6710b100b7 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-11-01 14:54:47 -04:00
ebolam
87f7d20d4a Added privacy mode (ctrl+L). Will blur the screen until a password is entered (configured in the interface tab under the UI section). 2022-11-01 14:54:38 -04:00
Viningr
dd7c429005 Merge branch 'ebolam:UI2' into master 2022-11-01 23:29:42 +10:00
Robert Vining
0bb6e0afae - Updated UI_2_generate_image()to reference new option in the Image Generation dropdown menu.
- Using Local SD-WebUI API option will send a post request to stable-diffusion-webui running with the --api switch on http://127.0.0.1:7860/sdapi/v1/txt2img

Signed-off-by: Robert Vining
2022-11-01 23:24:19 +10:00
ebolam
3ea1af5434 Merge pull request #276 from pi6am/feat/phrase-bias-improvements
Re-enable and fix several issues with phrase bias
2022-11-01 08:02:13 -04:00
Robert Vining
107bbfa291 Added new function text2img_api()
- sends prompt to locally hosted stable-diffusion-webui API and retrieves
 image result. info from SD API is embedded in png file as it is saved.
 image files are named with the current date at generation and saved
 in /stories/art/

Modified UI_2_generate_image() to call text2img_api() instead of text2img_horde


Signed-off-by: Robert Vining <offers@robertrvining.com>
2022-11-01 18:01:20 +10:00
Llama
77813df2f0 Re-enable and fix several issues with phrase bias
Add the PhraseBiasLogitsProcessor to the logits processor list

Fix an issue with bias phrases that contain the start token
multiple times.  Because we were searching backwards for the first
occurrence of the start token, we would restart the phrase when
we encountered a subsequent instance of the token.  We now search
forwards from the maximum possible overlap to find the maximum overlap.

Fix an issue with the phrase bias token index not accounting for
non-matching words.  Previously, once we found the start token,
we would apply the bias for each token in the bias phrase even if
subsequent tokens in the context didn't match the bias phrase.

Do not apply phrase completion if the bias score is negative.

If multiple phrases apply a score modifier to the same token, add
the scores rather than replacing the modifier with the last occurrence.

Increase the maximum range of the bias slider.  For extremely
repetitive text on large models, -12 is insufficient to break the
model out of its loop.  -50 to 50 is potentially excessive, but it's
safer to give the user some additional control over the bias score.
2022-11-01 00:20:15 -07:00
ebolam
07eb1b5a26 Merge pull request #271 from one-some/ui2-better-clubbing
Better club importing
2022-10-31 15:43:52 -04:00
somebody
cdb058e47d Make club loading nicer 2022-10-30 21:34:49 -05:00
somebody
53b1695627 Support auto-focusing in openPopup 2022-10-30 21:32:47 -05:00
somebody
c750163d17 Make notifications really way up there 2022-10-30 21:32:23 -05:00
ebolam
48852f650f Fix for story rename 2022-10-30 20:21:31 -04:00
ebolam
4007729d42 Download Story now works after disconnect 2022-10-30 19:34:02 -04:00
ebolam
d531992220 Scroll Fix and offline story downloader 2022-10-30 19:10:31 -04:00
ebolam
3ad305f1c1 Added auto-loader so we eventually get the whole story to the UI while keeping it interactive. 2022-10-30 17:50:00 -04:00
ebolam
f6c0f42776 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-10-30 12:50:29 -04:00
ebolam
9aaec13e1f Fix for Model Welcome Text 2022-10-30 12:50:23 -04:00
ebolam
3c403b0a89 Merge pull request #269 from one-some/ui2-shortcut-fix
Shortcut fix
2022-10-30 12:49:33 -04:00
ebolam
1fe41aaceb Merge pull request #267 from pi6am/fix/streaming-spaces
Fix space tokens being dropped from stream preview.
2022-10-30 12:27:32 -04:00
somebody
58aacf2cd8 Shortcut criteria for story history navigation 2022-10-30 11:23:59 -05:00
ebolam
559ec4d55c Merge pull request #266 from one-some/ui2-better-confirm
Better deletion confirmation dialog
2022-10-30 12:18:25 -04:00
somebody
b0bad4999b Remove some debug code for the notifications
Whoops
2022-10-30 11:16:16 -05:00
Llama
9f0b81742b Fix space tokens being dropped from stream preview.
When streaming preview tokens arrive, they are accumulated into
a stream_preview span.  These tokens were inserted one-by-one
into the `innerText` property of this span.  However, the behavior
of innerText is to discard trailing whitespace, which meant
that a token that was entirely composed of spaces would be
discarded.
See this link for more information on this behavior:
https://stackoverflow.com/questions/47768523/empty-spaces-are-ignored-by-the-innertext-property

I tried fixing this by switching to use `textContent`, however this
caused newlines to be discarded instead.  This change fixes the issue
by accumulating incoming tokens into a string and then assigning the
string to innerText.
2022-10-29 21:33:09 -07:00
somebody
e970c6122e Better deletion confirmation dialog 2022-10-29 22:45:56 -05:00
ebolam
9291e11088 Fix for colab theme loading bug 2022-10-29 11:55:12 -04:00
ebolam
972744c947 Added notification when dynamic world info is triggered 2022-10-29 10:29:53 -04:00
ebolam
92a39bc5e8 Potential Colab Tweak loading fix 2022-10-29 10:12:09 -04:00
ebolam
16e3478fa6 Popup fixes 2022-10-28 21:50:26 -04:00
ebolam
e3aeedfe16 Minor fix 2022-10-28 21:34:05 -04:00
ebolam
12b0872b80 Add margin 2022-10-28 21:07:25 -04:00
ebolam
8476083490 Missing Quote Fixed (wasn't needed anymore 2022-10-28 20:59:54 -04:00
ebolam
b8d2a59571 Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-10-28 20:48:25 -04:00
ebolam
ed2431e15c Fix for welcome icon/text placement 2022-10-28 20:48:19 -04:00
ebolam
9f140294a1 Merge pull request #258 from LightSaveUs/UI2
Nostalgia Minor Rework
2022-10-28 20:06:44 -04:00
LightSaveUs
cc593b4f91 Update Nostalgia to 0.4 version 2022-10-29 03:05:03 +03:00
ebolam
b7a19661cb ???? No idea why this works, but fixes weird tooltip movement 2022-10-28 20:03:58 -04:00
ebolam
72121519de Whoops 2022-10-28 19:23:23 -04:00
ebolam
f48d5efac1 Potential Colab Fix 2022-10-28 19:19:58 -04:00
ebolam
0aa558f17b Fix for position of debug dump on popups 2022-10-28 19:10:27 -04:00
ebolam
4cd8cbe58b Merge branch 'UI2' of https://github.com/ebolam/KoboldAI into UI2 2022-10-28 17:35:50 -04:00
ebolam
c25efcb7e5 Popup Header Fix 2022-10-28 17:35:29 -04:00
ebolam
f22f243265 Merge pull request #257 from LightSaveUs/UI2
Slight Tooltips Refining
2022-10-28 16:18:59 -04:00
LightSaveUs
cd46b28813 Slight Tooltips Refining 2022-10-28 23:01:08 +03:00
ebolam
dc6c9e2f31 Add installation script for horde bridge 2022-10-28 14:22:47 -04:00
ebolam
c3ccdb0b50 Potential Colab URL fix 2022-10-28 14:19:50 -04:00