Skip to content

Commit

Permalink
Merge branch 'Hukasx0:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsi123 authored Jan 31, 2024
2 parents 971c010 + f65acfc commit bc0b79f
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 8 deletions.
9 changes: 8 additions & 1 deletion app/main-mistral-webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def export_character_card(
gr.Markdown("## Model: Mistral 7b instruct 0.1")
with gr.Tab("Edit character"):
gr.Markdown(
"## Protip: If you want to generate the entire character using LLM and Stable Diffusion, start from the top to bottom" # nopep8
"## Hint: If you want to generate the entire character using LLM and Stable Diffusion, start from the top to bottom" # nopep8
)
topic = gr.Textbox(
placeholder="Topic: The topic for character generation (e.g., Fantasy, Anime, etc.)", # nopep8
Expand Down Expand Up @@ -591,6 +591,13 @@ def export_character_card(
],
outputs=export_json_textbox,
)
gr.HTML("""<div style='text-align: center; font-size: 20px;'>
<p>
<a style="text-decoration: none; color: inherit;" href="https://github.com/Hukasx0/character-factory">Character Factory</a>
by
<a style="text-decoration: none; color: inherit;" href="https://github.com/Hukasx0">Hubert "Hukasx0" Kasperek</a>
</p>
</div>""") # nopep8

safety_checker_sd = sd.safety_checker

Expand Down
9 changes: 8 additions & 1 deletion app/main-zephyr-webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def export_character_card(
gr.Markdown("## Model: Zephyr 7b Beta")
with gr.Tab("Edit character"):
gr.Markdown(
"## Protip: If you want to generate the entire character using LLM and Stable Diffusion, start from the top to bottom" # nopep8
"## Hint: If you want to generate the entire character using LLM and Stable Diffusion, start from the top to bottom" # nopep8
)
topic = gr.Textbox(
placeholder="Topic: The topic for character generation (e.g., Fantasy, Anime, etc.)", # nopep8
Expand Down Expand Up @@ -662,6 +662,13 @@ def export_character_card(
],
outputs=export_json_textbox,
)
gr.HTML("""<div style='text-align: center; font-size: 20px;'>
<p>
<a style="text-decoration: none; color: inherit;" href="https://github.com/Hukasx0/character-factory">Character Factory</a>
by
<a style="text-decoration: none; color: inherit;" href="https://github.com/Hukasx0">Hubert "Hukasx0" Kasperek</a>
</p>
</div>""") # nopep8

safety_checker_sd = sd.safety_checker

Expand Down
9 changes: 8 additions & 1 deletion colab/character_factory_colab_mistral.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@
" gr.Markdown(\"# Character Factory WebUI\")\n",
" gr.Markdown(\"## Model: Mistral 7b instruct 0.1\")\n",
" with gr.Tab(\"Edit character\"):\n",
" gr.Markdown(\"## Protip: If you want to generate the entire character using LLM and Stable Diffusion, start from the top to bottom\")\n",
" gr.Markdown(\"## Hint: If you want to generate the entire character using LLM and Stable Diffusion, start from the top to bottom\")\n",
" topic = gr.Textbox(placeholder=\"Topic: The topic for character generation (e.g., Fantasy, Anime, etc.)\", label=\"topic\")\n",
" gender = gr.Textbox(placeholder=\"Gender: Gender of the character\", label=\"gender\")\n",
" with gr.Column():\n",
Expand Down Expand Up @@ -423,6 +423,13 @@
"\n",
" export_card_button.click(export_character_card, inputs=[name, summary, personality, scenario, greeting_message, example_messages], outputs=export_image)\n",
" export_json_button.click(export_as_json, inputs=[name, summary, personality, scenario, greeting_message, example_messages], outputs=export_json_textbox)\n",
" gr.HTML(\"\"\"<div style='text-align: center; font-size: 20px;'>\n",
" <p>\n",
" <a style=\"text-decoration: none; color: inherit;\" href=\"https://github.com/Hukasx0/character-factory\">Character Factory</a> \n",
" by \n",
" <a style=\"text-decoration: none; color: inherit;\" href=\"https://github.com/Hukasx0\">Hubert \"Hukasx0\" Kasperek</a>\n",
" </p>\n",
" </div>\"\"\")\n",
"\n",
"safety_checker_sd = sd.safety_checker\n",
"\n",
Expand Down
9 changes: 8 additions & 1 deletion colab/character_factory_colab_zephyr.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
" gr.Markdown(\"# Character Factory WebUI\")\n",
" gr.Markdown(\"## Model: Zephyr 7b Beta\")\n",
" with gr.Tab(\"Edit character\"):\n",
" gr.Markdown(\"## Protip: If you want to generate the entire character using LLM and Stable Diffusion, start from the top to bottom\")\n",
" gr.Markdown(\"## Hint: If you want to generate the entire character using LLM and Stable Diffusion, start from the top to bottom\")\n",
" topic = gr.Textbox(placeholder=\"Topic: The topic for character generation (e.g., Fantasy, Anime, etc.)\", label=\"topic\")\n",
" gender = gr.Textbox(placeholder=\"Gender: Gender of the character\", label=\"gender\")\n",
" with gr.Column():\n",
Expand Down Expand Up @@ -469,6 +469,13 @@
"\n",
" export_card_button.click(export_character_card, inputs=[name, summary, personality, scenario, greeting_message, example_messages], outputs=export_image)\n",
" export_json_button.click(export_as_json, inputs=[name, summary, personality, scenario, greeting_message, example_messages], outputs=export_json_textbox)\n",
" gr.HTML(\"\"\"<div style='text-align: center; font-size: 20px;'>\n",
" <p>\n",
" <a style=\"text-decoration: none; color: inherit;\" href=\"https://github.com/Hukasx0/character-factory\">Character Factory</a> \n",
" by \n",
" <a style=\"text-decoration: none; color: inherit;\" href=\"https://github.com/Hukasx0\">Hubert \"Hukasx0\" Kasperek</a>\n",
" </p>\n",
" </div>\"\"\")\n",
"\n",
"safety_checker_sd = sd.safety_checker\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion requirements-cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ aichar
tqdm
argparse
--extra-index-url https://download.pytorch.org/whl/cu118
torch==2.1.0+cu118
torch==2.1.2+cu118
torchaudio
torchvision
torchtext==0.6.0
Expand Down
2 changes: 1 addition & 1 deletion requirements-webui-cuda.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ einops
wcwidth
tqdm
--extra-index-url https://download.pytorch.org/whl/cu118
torch==2.1.0+cu118
torch==2.1.2+cu118
torchaudio
torchvision
torchtext==0.6.0
Expand Down
2 changes: 1 addition & 1 deletion requirements-webui.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ trampoline
einops
wcwidth
tqdm
torch==2.1.0
torch==2.1.2
torchvision
torchaudio
torchtext==0.6.0
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
aichar
tqdm
torch==2.1.0
torch==2.1.2
torchvision
torchaudio
torchtext==0.6.0
Expand Down

0 comments on commit bc0b79f

Please sign in to comment.