Skip to content

Commit

Permalink
updated prompts (can activate them under new buttons for oobabooga on…
Browse files Browse the repository at this point in the history
I updated code for prompting and the webui,
now includes cleaning to some outputs regarding brackets {{}} and asterisks.
I do not rememberall my changes.
  • Loading branch information
thijsi123 committed Feb 1, 2024
1 parent f65acfc commit 1c1dfe1
Show file tree
Hide file tree
Showing 20 changed files with 3,214 additions and 1 deletion.
8 changes: 8 additions & 0 deletions app/.idea/app.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/.idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions app/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions app/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions app/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/main-mistral-webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def generate_character_avatar(
example_dialogue
+ "\n[INST] create a prompt that lists the appearance "
+ "characteristics of a character whose summary is "
+ "if lack of info, generate something based on available info."
+ f" {character_summary}. Topic: {topic} [/INST]\n"
)
print(sd_prompt)
Expand Down
1 change: 1 addition & 0 deletions app/main-zephyr-webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ def generate_character_avatar(
example_dialogue
+ "\n<|user|> create a prompt that lists the appearance "
+ "characteristics of a character whose summary is "
+ "if lack of info, generate something based on available info."
+ f"{character_summary}. Topic: {topic} </s>\n<|assistant|> "
).strip()
)
Expand Down
860 changes: 860 additions & 0 deletions app/oobabooga - webui test fandom character.py

Large diffs are not rendered by default.

Loading

0 comments on commit 1c1dfe1

Please sign in to comment.