Skip to content

Nenotriple/dynamic_prompt_tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Prompt Tester

A GUI for testing dynamic prompts and wildcards. Perfect for testing text generation prompts, templates, or any text that uses dynamic placeholders.

For more information regarding dynamic prompts: https://github.com/adieyal/sd-dynamic-prompts

Note

Still in early development!

Interaction between tabs is limited:

  • Only sending prompts from the "Saved Prompts" tab to the "Prompt Tester" tab is supported.
  • Saving/loading prompts from the "Prompt Tester" tab is not yet implemented.

Some Dynamic Prompt syntax isn't supported in the "Prompt Tester" like Weighting Options, Omitting Bounds, and some more.

Features

Prompt Tester

  • Live Processing: See results in real-time as you type
  • Dynamic Prompt Syntax: Use Dynamic Prompt syntax to insert dynamic content
  • Wildcard Support: Use __wildcard__ syntax to insert dynamic content
  • Fixed Seed Option: Get consistent results for testing
  • Text Statistics: Character, word, and estimated token counts
  • Collapsible Output: Option to collapse output to a single line
  • Built-in Help: Access help for syntax tips and usage

Prompt Management

  • Save & Organize: Store prompts in a hierarchical folder structure (JSON format)
  • Quick Search: Find prompts by name or content
  • Import/Export: Save and load your prompt library

Usage

Basic Operation

  1. Enter your text in the input pane
  2. use Dynamic Prompt syntax to insert dynamic content
  3. Use __wildcard__ syntax to insert dynamic content
  4. View the processed result in the output pane

Wildcards

  • Create .txt files in your wildcards folder
  • Each file should contain one item per line
  • Select the wildcards path using the "Browse..." button
    • The last selected path will be remembered
  • Reference wildcards using __filename__ syntax
  • Example: Hello __names__ will randomly select a name from names.txt

Saving Prompts

  1. Switch to the "Saved Prompts" tab
  2. Create folders to organize your prompts
  3. Add new prompts using the "New" menu
  4. Edit and save prompts as needed
  5. Your prompts/folders will be saved in JSON format

Requirements

To Run the GUI

  1. Clone the repository
  • git clone https://github.com/Nenotriple/TkToolTip.git
  1. Create a virtual environment/install dependencies/Start the GUI:
  • Run Start.bat
  1. After the virtual environment is created you can change the Start.bat argument set "FAST_START=FALSE" to set "FAST_START=TRUE" to skip the dependency installation step in the future.