Spaces:
Runtime error
Runtime error
Update app_edge.py
Browse files- app_edge.py +13 -9
app_edge.py
CHANGED
|
@@ -10,13 +10,17 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
| 10 |
|
| 11 |
examples = [
|
| 12 |
[
|
| 13 |
-
"condition/example/t2i/multigen/
|
| 14 |
"A stuffed animal wearing a mask and a leash, sitting on a blanket",
|
| 15 |
-
"(512, 512)"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
],
|
| 17 |
[
|
| 18 |
-
"condition/example/t2i/multigen/
|
| 19 |
-
"
|
| 20 |
],
|
| 21 |
# [
|
| 22 |
# "condition/example/t2i/multi_resolution/bird.jpg", "colorful bird",
|
|
@@ -63,11 +67,11 @@ def create_demo(process):
|
|
| 63 |
value=2,
|
| 64 |
step=0.1)
|
| 65 |
control_strength = gr.Slider(minimum=0., maximum=1.0, step=0.1, value=1.0, label="control_strength")
|
| 66 |
-
relolution = gr.Slider(label="(H, W)",
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
top_k = gr.Slider(minimum=1,
|
| 72 |
maximum=16384,
|
| 73 |
step=1,
|
|
|
|
| 10 |
|
| 11 |
examples = [
|
| 12 |
[
|
| 13 |
+
"condition/example/t2i/multigen/landscape.png",
|
| 14 |
"A stuffed animal wearing a mask and a leash, sitting on a blanket",
|
| 15 |
+
# "(512, 512)"
|
| 16 |
+
],
|
| 17 |
+
[
|
| 18 |
+
"condition/example/t2i/multigen/doll.jpg",
|
| 19 |
+
"A stuffed animal wearing a mask and a leash, sitting on a green blanket",# "(512, 512)"
|
| 20 |
],
|
| 21 |
[
|
| 22 |
+
"condition/example/t2i/multigen/eye.jpg",
|
| 23 |
+
"A vivid drawing of an eye with a few pencils nearby",# "(512, 512)"
|
| 24 |
],
|
| 25 |
# [
|
| 26 |
# "condition/example/t2i/multi_resolution/bird.jpg", "colorful bird",
|
|
|
|
| 67 |
value=2,
|
| 68 |
step=0.1)
|
| 69 |
control_strength = gr.Slider(minimum=0., maximum=1.0, step=0.1, value=1.0, label="control_strength")
|
| 70 |
+
# relolution = gr.Slider(label="(H, W)",
|
| 71 |
+
# minimum=384,
|
| 72 |
+
# maximum=768,
|
| 73 |
+
# value=512,
|
| 74 |
+
# step=16)
|
| 75 |
top_k = gr.Slider(minimum=1,
|
| 76 |
maximum=16384,
|
| 77 |
step=1,
|