Python GUI for Running Prompts

Python GUI for Running Prompts

Asks the AI to write a Python desktop GUI that sends prompts to the OpenAI API, saves prompts and outputs to chosen folders and remembers settings.

Could you generate a Python GUI.

Here are the functions I would like incorporated.

The user can enter the text of a prompt. This should be a multi line field
The user can enter the title of the prompt. this should be a single line field.

The user can configure two folders:

The first folder is where the prompts will be stored.
The second folder is where the outputs will be stored.

The user can also enter their OpenAI API key.

The GUI should have the ability to retain these settings between sessions. So these variables can be written to a memory file.

The functionality of the GUI should be as follows

The user enters a prompt text. And when ready to execute it, he clicks a button that says Run Prompt

There is a terminal output display field in the UI where the user can monitor the progress of the jobs which the GUI runs.

When the user executes the prompt, it gets sent to the OpenAI API via its API.

When the API returns with an output, the output should be written to the outputs folder. the file name should be the title that the user entered with hyphens replacing spaces

the prompt should be written to the prompts folder with the same file name

when this process completes successfully the terminal output pane should provide a success message and then the output should clear

After the user sends a prompt for execution, the prompt pane should clear so that the user can use it again to send a new prompt

© Daniel Rosehill · CC BY 4.0 · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…