Download core/generation_logic.py from ISAAC1982/ImageGen: direct link, hf CLI and curl.
- Browser
- Download file 317 Bytes
-
https://huggingface.co/spaces/ISAAC1982/ImageGen/resolve/main/core/generation_logic.py
- Command line
-
hf download hf://spaces/ISAAC1982/ImageGen/core/generation_logic.py
-
curl -L -o generation_logic.py https://huggingface.co/spaces/ISAAC1982/ImageGen/resolve/main/core/generation_logic.py
317 Bytes
| from typing import Any, Dict | |
| import gradio as gr | |
| from core.pipelines.sd_image_pipeline import SdImagePipeline | |
| sd_image_pipeline = SdImagePipeline() | |
| def generate_image_wrapper(ui_inputs: dict, progress=gr.Progress(track_tqdm=True)): | |
| return sd_image_pipeline.run(ui_inputs=ui_inputs, progress=progress) |