oobabooga
89888bef56
UI: increase the threshold for a <li> to be considered long
2024-12-19 14:38:36 -08:00
oobabooga
e2fb86e5df
UI: further improve the style of lists and headings
2024-12-19 13:59:24 -08:00
oobabooga
3d19746a5d
UI: improve HTML rendering for lists with sub-lists
2024-11-18 10:14:09 -08:00
oobabooga
ffc713f72b
UI: fix multiline LaTeX equations
2024-07-27 15:36:10 -07:00
oobabooga
e4d411b841
UI: fix rendering LaTeX enclosed between \[ and \]
2024-07-27 15:21:44 -07:00
oobabooga
42e80108f5
UI: clear the markdown LRU cache when using the default/notebook tabs
2024-07-25 08:01:42 -07:00
oobabooga
947016d010
UI: make the markdown LRU cache infinite (for really long conversations)
2024-07-24 11:54:26 -07:00
oobabooga
e637b702ff
UI: make text between quotes colored in chat mode
2024-07-23 21:30:32 -07:00
oobabooga
8ec8bc0b85
UI: handle another edge case while streaming lists
2024-06-26 18:40:43 -07:00
oobabooga
b1187fc9a5
UI: prevent flickering while streaming lists / bullet points
2024-06-25 19:19:45 -07:00
oobabooga
6761b5e7c6
Improved instruct style (with syntax highlighting & LaTeX rendering) ( #5936 )
2024-04-26 10:13:11 -03:00
Victorivus
c423d51a83
Fix issue #5783 for character images with transparency ( #5827 )
2024-04-11 02:23:43 -03:00
oobabooga
13fe38eb27
Remove specialized code for gpt-4chan
2024-04-04 16:11:47 -07:00
oobabooga
49b111e2dd
Lint
2024-03-17 08:33:23 -07:00
oobabooga
edec3bf3b0
UI: avoid caching convert_to_markdown calls during streaming
2024-03-13 08:14:34 -07:00
oobabooga
46031407b5
Increase the cache size of convert_to_markdown to 4096
2024-03-11 18:43:04 -07:00
oobabooga
afadc787d7
Optimize the UI by caching convert_to_markdown calls
2024-03-10 20:10:07 -07:00
oobabooga
aad73667af
Lint
2024-01-22 03:25:55 -08:00
Alberto Cano
37eff915d6
Use --disk-cache-dir for all caches
2024-01-04 00:27:26 -03:00
Lounger
7c0a17962d
Gallery improvements ( #4789 )
2023-12-03 22:45:50 -03:00
oobabooga
5fcee696ea
New feature: enlarge character pictures on click ( #4654 )
2023-11-19 02:05:17 -03:00
oobabooga
39f16ff83d
Fix default/notebook tabs css
2023-10-10 18:45:12 -07:00
oobabooga
019371c0b6
Lint
2023-09-25 20:31:11 -07:00
oobabooga
fd7257c7f8
Prevent code blocks from flickering while streaming
2023-09-15 07:46:26 -07:00
oobabooga
a3ecf3bb65
Add cai-chat-square chat style
2023-09-14 16:15:08 -07:00
oobabooga
70aafa34dc
Fix blockquote markdown rendering
2023-09-14 05:57:04 -07:00
oobabooga
9a202f7fb2
Prevent <ul> lists from flickering during streaming
2023-08-28 20:45:07 -07:00
oobabooga
57e9ded00c
Make it possible to scroll during streaming ( #3721 )
2023-08-28 16:03:20 -03:00
oobabooga
feecd8190f
Unescape inline code blocks
2023-08-24 21:01:09 -07:00
oobabooga
a74dd9003f
Fix HTML escaping for perplexity_colors extension
2023-08-20 21:40:22 -07:00
oobabooga
cebe07f29c
Unescape HTML inside code blocks
2023-08-16 21:08:26 -07:00
oobabooga
a4e903e932
Escape HTML in chat messages
2023-08-16 09:25:52 -07:00
oobabooga
cc7e6ef645
Fix a CSS conflict
2023-08-13 19:24:09 -07:00
oobabooga
6c6a52aaad
Change the filenames for caches and histories
2023-08-09 07:47:19 -07:00
missionfloyd
5134878344
Fix chat message order ( #3461 )
2023-08-05 13:53:54 -03:00
oobabooga
4b3384e353
Handle unfinished lists during markdown streaming
2023-08-03 17:15:18 -07:00
Pete
6afc1a193b
Add a scrollbar to notebook/default, improve chat scrollbar style ( #3403 )
...
---------
Co-authored-by: oobabooga <112222186+oobabooga@users.noreply.github.com>
2023-08-02 12:02:36 -03:00
oobabooga
4b1804a438
Implement sessions + add basic multi-user support ( #2991 )
2023-07-04 00:03:30 -03:00
Turamarth14
847f70b694
Update html_generator.py ( #2954 )
...
With version 10.0.0 of Pillow the constant Image.ANTIALIAS has been removed. Instead Image.LANCZOS should be used.
2023-07-02 01:43:58 -03:00
oobabooga
f0fcd1f697
Sort some imports
2023-06-25 01:44:36 -03:00
oobabooga
6a4783afc7
Add markdown table rendering
2023-05-10 13:41:23 -03:00
oobabooga
b5260b24f1
Add support for custom chat styles ( #1917 )
2023-05-08 12:35:03 -03:00
oobabooga
c728f2b5f0
Better handle new line characters in code blocks
2023-05-05 11:22:36 -03:00
oobabooga
46a8aa8c09
Readability
2023-04-16 21:26:19 -03:00
oobabooga
5342f72968
Properly handle blockquote blocks
2023-04-16 18:00:12 -03:00
oobabooga
beb95f5fe2
Add a style for the "chat" mode
2023-04-16 16:44:50 -03:00
oobabooga
0f1627eff1
Don't treat Intruct mode histories as regular histories
...
* They must now be saved/loaded manually
* Also improved browser caching of pfps
* Also changed the global default preset
2023-04-10 15:48:07 -03:00
oobabooga
ea6e77df72
Make the code more like PEP8 for readability ( #862 )
2023-04-07 00:15:45 -03:00
Forkoz
8203ce0cac
Stop character pic from being cached when changing chars or clearing. ( #798 )
...
Tested on both FF and chromium
2023-04-05 14:25:01 -03:00
oobabooga
7f66421369
Fix loading characters
2023-04-05 14:22:32 -03:00
oobabooga
e722c240af
Add Instruct mode
2023-04-05 13:54:50 -03:00
oobabooga
8ef89730a5
Try to better handle browser image cache
2023-04-04 23:09:28 -03:00
oobabooga
cc6c7a37f3
Add make_thumbnail function
2023-04-04 23:03:58 -03:00
oobabooga
80dfba05f3
Better crop/resize cached images
2023-04-04 22:52:15 -03:00
oobabooga
65d8a24a6d
Show profile pictures in the Character tab
2023-04-04 22:28:49 -03:00
oobabooga
8579fe51dd
Fix new lines in the HTML tab
2023-03-28 12:59:34 -03:00
oobabooga
6e1b16c2aa
Update html_generator.py
2023-03-24 17:18:27 -03:00
Vladimir Belitskiy
ca47e016b4
Do not display empty user messages in chat mode.
...
There doesn't seem to be much value to them - they just take up space while also making it seem like there's still some sort of pseudo-dialogue going on, instead of a monologue by the bot.
2023-03-20 12:55:57 -04:00
oobabooga
9ed2c4501c
Use markdown in the "HTML" tab
2023-03-17 16:06:11 -03:00
oobabooga
c5f14fb9b8
Optimize the HTML generation speed
2023-03-15 14:19:28 -03:00
oobabooga
bf812c4893
Minor fix
2023-03-15 14:05:35 -03:00
oobabooga
05ee323ce5
Rename a file
2023-03-15 13:26:32 -03:00
oobabooga
ec972b85d1
Move all css/js into separate files
2023-03-15 12:35:11 -03:00
HideLord
683556f411
Adding markdown support and slight refactoring.
2023-03-12 21:34:09 +02:00
oobabooga
43b6ab8673
Store thumbnails as files instead of base64 strings
...
This improves the UI responsiveness for large histories.
2023-02-27 13:41:00 -03:00
oobabooga
3333f94c30
Make the gallery extension work on colab
2023-02-26 12:37:26 -03:00
oobabooga
7224343a70
Improve the imports
2023-02-23 14:41:42 -03:00
oobabooga
98af4bfb0d
Refactor the code to make it more modular
2023-02-23 12:05:25 -03:00
oobabooga
bc856eb962
Add some more margin
2023-02-20 20:49:21 -03:00
oobabooga
f867285e3d
Make the circle a bit less red
2023-02-20 18:41:38 -03:00
oobabooga
e4440cd984
Make highlighted text gray in cai-chat mode
2023-02-20 16:43:32 -03:00
oobabooga
995bcfcf5e
Minor style change
2023-02-18 22:14:57 -03:00
oobabooga
d58544a420
Some minor formatting changes
2023-02-18 11:07:55 -03:00
oobabooga
abb4667b44
Improve basic HTML style
2023-02-17 23:08:34 -03:00
oobabooga
2fd003c044
Fix gpt4chan styles that were broken by gradio 3.18.0
2023-02-17 22:47:41 -03:00
oobabooga
3923ac967f
Create a cache for profile pictures (in RAM)
...
This is a performance optimization.
2023-02-17 14:30:39 -03:00
oobabooga
a6ddbbfc77
Add more fonts options
2023-02-17 11:30:04 -03:00
oobabooga
5eeb3f4e54
Make thumbnails for the profile pictures (for performance)
2023-02-17 10:58:54 -03:00
oobabooga
33ad21c4f2
Make the profile pictures a bit larger
2023-02-17 00:35:17 -03:00
oobabooga
c4e87c109e
Include the bot's image as base64
...
This is needed for Colab.
2023-02-17 00:24:27 -03:00
oobabooga
3746d72853
More style fixes
2023-02-15 21:13:12 -03:00
oobabooga
a55e8836f6
Bump gradio version
...
It looks uglier, but the old one was bugged and unstable.
2023-02-15 20:20:56 -03:00
SillyLossy
a7d98f494a
Use BLIP to send a picture to model
2023-02-15 01:38:21 +02:00
oobabooga
56bbc996a4
Minor CSS change for readability
2023-02-13 23:01:14 -03:00
oobabooga
61aed97439
Slightly increase a margin
2023-02-12 17:38:54 -03:00
oobabooga
76d3d7ddb3
Reorder the imports here too
2023-02-10 15:57:55 -03:00
oobabooga
d038963193
Rename a variable (for #59 )
2023-02-07 23:26:02 -03:00
oobabooga
dfbca86533
Add **bold** support in chat mode
2023-01-30 08:36:58 -03:00
oobabooga
fc73188ec7
Allow specifying your own profile picture in chat mode
2023-01-25 19:37:44 -03:00
oobabooga
434d4b128c
Add refresh buttons for the model/preset/character menus
2023-01-22 00:02:46 -03:00