Skip to content

S1D1T1/TinyDTClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyDTClient

A minimum client for Draw Things API

TinyDTClient is a tiny MacOS SwiftUI Application demonstrating the basic functions for a client to the awesome Image generation app, Draw Things (DT). It is extracted from the full-featured client, PromptWriter.

Dependancy: TinyDTClient depends on the library RealHTTP for the low level http client stuff. Thanks to Immobillaire

The app attempts to connect to a DT server at its default address, and has no UI for configuring server info, so DT must be running on the same mac, with HTTP server on, at port 7860. The app makes image requests on the API, sending json with 3 parameters: {"prompt":"your prompt","negative_prompt":"", "seed":-1} (prompt from the prompt field, blank negative prompt, random seed)

All other image settings are done directly in DT. There's no error handling or user feedback.

To experiment with building a stable diffusion front end, start by adding to the UI here - such as a text field for negative prompt, or controls for # of steps, etc.

Screenshot 2024-01-19 at 12 58 42 PM

TinyDTClient running alongside Draw Things