Gnome Ann
7e1b1add11
Don't import breakmodel until it's actually needed
...
breakmodel imports torch which takes a long time to import.
We should delay the importing of torch as long as possible.
2021-09-01 14:04:37 -04:00
Gnome Ann
f1633d3e5c
Prevent scope leakage of some variables in application.js
2021-09-01 14:01:04 -04:00
Gnome Ann
6bd6415749
Prevent remote-mode-forbidden actions server-side
...
Since some user interface buttons are disabled while in --remote mode,
they should also be disabled in aiserver.py so a malicious user can't
manually send those commands to the server.
2021-09-01 13:55:25 -04:00
Gnome Ann
8ae9304cda
Clean up code for saving story as plaintext
2021-09-01 13:49:04 -04:00
Gnome Ann
543acf9ba4
Also allow downloading stories as plaintext
2021-09-01 13:46:37 -04:00
Gnome Ann
fab51b64a3
Don't leave memory mode when downloading
2021-09-01 13:36:05 -04:00
Gnome Ann
25bb6486eb
Add an option under "Save" to download story (as JSON)
2021-09-01 13:32:11 -04:00
Gnome Ann
b5d9aaf785
Remember to actually import "Response" from flask
2021-09-01 13:31:05 -04:00
Gnome Ann
4e9b371564
Merge branch 'united' into story-manager
2021-09-01 13:25:28 -04:00
Gnome Ann
cb446d2113
Copy the event handlers from "Save As" to the Rename dialog
2021-09-01 13:10:21 -04:00
Gnome Ann
556835cd34
Move some of the delete/rename dialog event handlers
2021-09-01 13:05:24 -04:00
Gnome Ann
16184ceee8
Catch and display errors from "Save As"
2021-09-01 12:58:01 -04:00
Gnome Ann
e31640a89d
Remove unused "import string" from fileops.py
2021-09-01 12:26:08 -04:00
henk717
4151fd1b6a
Save story in plain text along the save
...
Not just saving in .json but also in plain text, should help story writers get their stories out more easily. Especially since they can technically add some markdown into their stories manually in the interface.
2021-09-01 17:41:18 +02:00
henk717
9b3e298089
Foundation for in browser downloading
...
This adds /download as a URL to immediately download the file, this will allow html changes that initiate a file download.
2021-09-01 15:58:56 +02:00
henk717
55059bddcf
Merge pull request #14 from VE-FORBRYDERNE/united
...
Add Open Font License to Open Iconic's CSS file
2021-09-01 00:32:22 +02:00
Gnome Ann
c276220a35
Allow deleting and renaming stories in the browser
2021-08-31 18:22:30 -04:00
Gnome Ann
db284b2367
Add Open Font License to Open Iconic's CSS file
2021-08-31 16:03:11 -04:00
henk717
03a4da0ade
Merge pull request #12 from VE-FORBRYDERNE/breakmodel
...
Fix for when breakmodel layers is 0
2021-08-29 02:26:56 +02:00
henk717
9f0e50db68
Merge pull request #13 from VE-FORBRYDERNE/united
...
Fix error when you use "Add sentence spacing"
2021-08-29 02:26:37 +02:00
Gnome Ann
2f4f7ac92a
Fix error when you use "Add sentence spacing"
2021-08-28 18:54:10 -04:00
Gnome Ann
b5c28f4e07
Fix for when breakmodel layers is 0
2021-08-28 02:19:51 -04:00
henk717
8b175df26e
Merge pull request #11 from VE-FORBRYDERNE/united
...
Remove typing.Literal (a Python 3.8+ feature)
2021-08-26 21:40:42 +02:00
Gnome Ann
63a4048053
Remove typing.Literal (a Python 3.8+ feature)
2021-08-26 15:38:58 -04:00
henk717
36d5f249b7
Merge pull request #10 from VE-FORBRYDERNE/big-o
...
A fix for world info keyword scanning which I broke in the previous pull request, and more triggers for scrolling to bottom
2021-08-26 21:35:22 +02:00
Gnome Ann
0fbf620f22
Added scroll-to-bottom for closing genseqs/W Info
...
Scroll time is halved now also.
2021-08-26 15:15:42 -04:00
Gnome Ann
75c68c2b78
Fix world info depth being ignored
2021-08-26 12:50:17 -04:00
henk717
829d309abd
Merge pull request #9 from VE-FORBRYDERNE/big-o
...
Optimization for very large stories
2021-08-26 11:06:20 +02:00
Gnome Ann
d7605a717b
Merge branch 'united' into big-o
...
This resolves two merge conflicts that arose because this branch was
a few commits behind.
2021-08-26 01:37:40 -04:00
Gnome Ann
6a0299837c
Make the green editing flash !important
2021-08-26 01:22:07 -04:00
Gnome Ann
8fd8612cca
Adventure mode colouring now controlled by a CSS class
...
So that we can just toggle the class instead of having aiserver.py send
back the entire story.
2021-08-26 01:06:57 -04:00
Gnome Ann
27c7baab92
Prevent some errors when the prompt is the only chunk
2021-08-25 23:58:12 -04:00
Gnome Ann
b0d64985bb
Fix Retry and Back buttons popping the wrong chunk
2021-08-25 19:56:57 -04:00
henk717
bbd5bd0cd7
Merge pull request #8 from VE-FORBRYDERNE/misc
...
General usability fixes
2021-08-26 01:56:42 +02:00
Gnome Ann
796f5ffd05
Make vars.actions a dictionary instead of a list
2021-08-25 19:28:26 -04:00
Gnome Ann
5604d7f317
Replace non-breaking spaces with regular spaces
2021-08-25 19:25:57 -04:00
Gnome Ann
5603bf0584
Hide messages on updatechunk and removechunk
2021-08-25 19:22:35 -04:00
Gnome Ann
6dcd7888c8
Change "recieved" to "received"
2021-08-25 14:55:26 -04:00
Gnome Ann
c3528e6221
Retry after Back no longer pops an extra story chunk
2021-08-25 14:54:51 -04:00
Gnome Ann
cf677c60fc
Stability fixes for back/retry re genseqs/useprompt
...
* Back and Retry buttons no longer pop a story chunk while in the
"Select sequence to keep" menu
* No longer freezes if you retry with no story chunks beyond the initial
prompt chunk
* When "Always Add Prompt" is on, allow Retry even if the prompt is the
only chunk in the story
* Added error messages for Back and Retry buttons
2021-08-25 14:42:37 -04:00
henk717
d848d03d60
Merge pull request #7 from VE-FORBRYDERNE/wi-constant
...
Constant world info keys
2021-08-25 20:14:19 +02:00
henk717
9d2e21de1b
Updated requirements.txt
...
ColabKobold already had this, we need the requirements.txt updated as well since Colab does not use Conda.
2021-08-25 14:30:37 +02:00
henk717
3da0c3d24a
Remote improvements
...
Some colab's use KoboldAI as a subprocess, rather than making that to complicated for Colab developers its better to just dump the Cloudflare link to a log, in addition to showing the message on screen. That way if KoboldAI itself gets filtered you can easily cat the link or use the existing link grabbing methods.
2021-08-25 13:57:38 +02:00
Gnome Ann
b52f782d92
Disable post-edit blurring and the curtain
...
Because we don't need them anymore.
This, combined with the chunk optimization, will allow you to
seamlessly continue editing a different chunk after you've finished
editing your current one; e.g. if you edit a chunk and use arrow keys,
backspace or the mouse to select a different chunk, you can immediately
start editing your new chunk without it defocusing.
This patch really has killed two birds with one stone, eh?
Thanks, Javalar!
2021-08-25 01:21:01 -04:00
Gnome Ann
cbdf3fa037
Display names of problematic story JSON files
2021-08-24 19:29:40 -04:00
Gnome Ann
cfb622b47f
Merge https://github.com/KoboldAI/KoboldAI-Client/pull/58 into misc
2021-08-24 19:28:39 -04:00
Gnome Ann
b1c6aee8d3
Integrate inline chunk editor and Adventure mode with Javalar's branch
2021-08-24 19:02:52 -04:00
Gnome Ann
735fc9431b
Still HTML-escape chunks if Adventure is off
...
(cherry picked from commit 3409d8c12e3fbb1e3232f2df82740b012e8f3604)
2021-08-24 18:46:34 -04:00
Gnome Ann
09030573e5
Broadcast updatechunk and removechunk
2021-08-24 18:40:12 -04:00
Gnome Ann
62ad2f0228
Code indentation consistency
2021-08-24 18:32:48 -04:00