Spaces:
Sleeping
Sleeping
Finished store properties block, updated textresizing into function initializeTextareaResizing and it runs after initial load, drop, drop to trash, and reset.
8333c17 Download sd_generator.py from TheDrakosfire/StoreGenerator: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/TheDrakosfire/StoreGenerator/resolve/67ba65ca21e807fd8cb32794de54a3e21b9ba90e/sd_generator.py
- Command line
-
hf download hf://spaces/TheDrakosfire/StoreGenerator@67ba65ca21e807fd8cb32794de54a3e21b9ba90e/sd_generator.py
-
curl -L -o sd_generator.py https://huggingface.co/spaces/TheDrakosfire/StoreGenerator/resolve/67ba65ca21e807fd8cb32794de54a3e21b9ba90e/sd_generator.py
507 Bytes
| import fal_client | |
| def preview_and_generate_image(image_subject, image_subject_name ,sd_prompt): | |
| handler = fal_client.submit( | |
| "fal-ai/flux/dev", | |
| arguments={ | |
| "prompt": f"A fantasy image of a {image_subject} in a fantasy world, the name of the store is {image_subject_name} it looks likes {sd_prompt}", | |
| "num_inference_steps": 28, | |
| "guidance_scale": 3.5, | |
| }, | |
| ) | |
| result = handler.get() | |
| return result['images'][0]['url'] | |