mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-09 00:23:38 +00:00
Restructure the repository (#6904)
This commit is contained in:
parent
d4017fbb6d
commit
d9de14d1f7
116 changed files with 254 additions and 261 deletions
|
|
@ -128,7 +128,7 @@ def get_truncation_length():
|
|||
|
||||
|
||||
def load_grammar(name):
|
||||
p = Path(f'grammars/{name}')
|
||||
p = Path(f'user_data/grammars/{name}')
|
||||
if p.exists():
|
||||
return open(p, 'r', encoding='utf-8').read()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue