Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ with block:
|
|
| 68 |
run_button = gr.Button(label="Run")
|
| 69 |
with gr.Accordion("Advanced options", open=False):
|
| 70 |
num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=1, step=1)
|
| 71 |
-
image_resolution = gr.Slider(label="Image Resolution", minimum=256, maximum=768, value=
|
| 72 |
#low_threshold = gr.Slider(label="Canny low threshold", minimum=1, maximum=255, value=100, step=1)
|
| 73 |
#high_threshold = gr.Slider(label="Canny high threshold", minimum=1, maximum=255, value=200, step=1)
|
| 74 |
sample_steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=8, step=1)
|
|
@@ -86,8 +86,8 @@ with block:
|
|
| 86 |
|
| 87 |
gr.Examples(
|
| 88 |
[
|
| 89 |
-
["models/anime-ggml-model-q4_0.bin", "A lovely cat drinking a cup of tea", 1,
|
| 90 |
-
["models/deliberate-ggml-model-q4_0.bin", "Anthropomorphic cat dressed as a fire fighter", 1,
|
| 91 |
],
|
| 92 |
inputs = [model_path ,prompt, num_samples, image_resolution, sample_steps, seed],
|
| 93 |
label = "Examples"
|
|
|
|
| 68 |
run_button = gr.Button(label="Run")
|
| 69 |
with gr.Accordion("Advanced options", open=False):
|
| 70 |
num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=1, step=1)
|
| 71 |
+
image_resolution = gr.Slider(label="Image Resolution", minimum=256, maximum=768, value=512, step=256)
|
| 72 |
#low_threshold = gr.Slider(label="Canny low threshold", minimum=1, maximum=255, value=100, step=1)
|
| 73 |
#high_threshold = gr.Slider(label="Canny high threshold", minimum=1, maximum=255, value=200, step=1)
|
| 74 |
sample_steps = gr.Slider(label="Steps", minimum=1, maximum=100, value=8, step=1)
|
|
|
|
| 86 |
|
| 87 |
gr.Examples(
|
| 88 |
[
|
| 89 |
+
["models/anime-ggml-model-q4_0.bin", "A lovely cat drinking a cup of tea", 1, 512, 8, 10],
|
| 90 |
+
["models/deliberate-ggml-model-q4_0.bin", "Anthropomorphic cat dressed as a fire fighter", 1, 512, 8, 20],
|
| 91 |
],
|
| 92 |
inputs = [model_path ,prompt, num_samples, image_resolution, sample_steps, seed],
|
| 93 |
label = "Examples"
|