Spaces:
Sleeping
Sleeping
add pdf notebook
Browse files- .gitignore +2 -1
- ai-math.png +0 -0
- app.py +6 -2
- cuttest.jpg +0 -0
- stable_diffusion.ipynb +0 -0
.gitignore
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
.venv/**
|
| 2 |
.DS_Store
|
| 3 |
-
__pycache__
|
|
|
|
|
|
| 1 |
.venv/**
|
| 2 |
.DS_Store
|
| 3 |
+
__pycache__
|
| 4 |
+
stable_diffusion_files/**
|
ai-math.png
ADDED
|
app.py
CHANGED
|
@@ -9,7 +9,11 @@ The code demonstrates:
|
|
| 9 |
* how to use an existing image as a starting point for the output image generation, in addition to the prompt
|
| 10 |
* how to use negative prompt
|
| 11 |
* how to capture latents through the generation
|
| 12 |
-
* how to mix prompt embeddings
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
ig = ImageGenerator()
|
|
@@ -111,4 +115,4 @@ with gr.Blocks() as demo:
|
|
| 111 |
inputs=[prompt, secondary_prompt, mix_ratio, negative_prompt, guidance, steps, init_image],
|
| 112 |
outputs=[output_image, noisy_image, latent_images])
|
| 113 |
|
| 114 |
-
demo.launch()
|
|
|
|
| 9 |
* how to use an existing image as a starting point for the output image generation, in addition to the prompt
|
| 10 |
* how to use negative prompt
|
| 11 |
* how to capture latents through the generation
|
| 12 |
+
* how to mix prompt embeddings
|
| 13 |
+
|
| 14 |
+

|
| 15 |
+
|
| 16 |
+
"""
|
| 17 |
|
| 18 |
|
| 19 |
ig = ImageGenerator()
|
|
|
|
| 115 |
inputs=[prompt, secondary_prompt, mix_ratio, negative_prompt, guidance, steps, init_image],
|
| 116 |
outputs=[output_image, noisy_image, latent_images])
|
| 117 |
|
| 118 |
+
demo.launch(allowed_paths=["./"]) #allowed_paths=["/tmp/"]
|
cuttest.jpg
ADDED
|
stable_diffusion.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|