mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-05 14:45:28 +00:00
Revert "Safer usage of mkdir across the project"
This reverts commit 0d1597616f.
This commit is contained in:
parent
0d1597616f
commit
aa44e542cb
16 changed files with 206 additions and 240 deletions
|
|
@ -160,8 +160,7 @@ def get_available_presets():
|
|||
|
||||
def get_available_prompts():
|
||||
notebook_dir = Path('user_data/logs/notebook')
|
||||
if not notebook_dir.exists():
|
||||
notebook_dir.mkdir(parents=True, exist_ok=True)
|
||||
notebook_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
prompt_files = list(notebook_dir.glob('*.txt'))
|
||||
sorted_files = sorted(prompt_files, key=lambda x: x.stat().st_mtime, reverse=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue