forked from Hukasx0/character-factory
-
Notifications
You must be signed in to change notification settings - Fork 1
/
oobabooga - Terminal.bat
42 lines (29 loc) · 1.82 KB
/
oobabooga - Terminal.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@echo off
setlocal enabledelayedexpansion
set "args="
set /p "url=Enter Enter the URL for the API endpoint (e.g., '127.0.0.1:5000/') (required, it not send, it will be asked again): "
if not "!url!"=="" set "args=!args! --url "!url!""
set /p "name=Enter character name (press Enter to skip): "
if not "!name!"=="" set "args=!args! --name "!name!""
set /p "summary=Enter character summary (press Enter to skip): "
if not "!summary!"=="" set "args=!args! --summary "!summary!""
set /p "personality=Enter character personality (press Enter to skip): "
if not "!personality!"=="" set "args=!args! --personality "!personality!""
set /p "scenario=Enter character scenario (press Enter to skip): "
if not "!scenario!"=="" set "args=!args! --scenario "!scenario!""
set /p "greeting_message=Enter greeting message (press Enter to skip): "
if not "!greeting_message!"=="" set "args=!args! --greeting-message "!greeting_message!""
set /p "example_messages=Enter example messages (press Enter to skip): "
if not "!example_messages!"=="" set "args=!args! --example_messages "!example_messages!""
set /p "topic=Enter topic (e.g., Fantasy, Anime, Warrior, Dwarf): "
if not "!topic!"=="" set "args=!args! --topic "!topic!""
set /p "avatar_prompt=Enter avatar prompt (press Enter to skip): "
if not "!avatar_prompt!"=="" set "args=!args! --avatar-prompt "!avatar_prompt!""
set /p "negative_prompt=Enter negative prompt for Stable Diffusion (press Enter to skip): "
if not "!negative_prompt!"=="" set "args=!args! --negative-prompt "!negative_prompt!""
set /p "gender=Enter character gender (male, female, etc... or press Enter for no preference): "
if not "!gender!"=="" set "args=!args! --gender "!gender!""
echo Running command: venv\Scripts\python.exe app\oobabooga.py !args!
venv\Scripts\python.exe app\oobabooga.py !args!
REM if %ERRORLEVEL% neq 0 pause
pause