Spaces:
Runtime error
Runtime error
omerXfaruq
commited on
Commit
•
9e0ec3b
1
Parent(s):
50cd9e5
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ dataset = load_dataset("BounharAbdelaziz/Face-Aging-Dataset")
|
|
13 |
|
14 |
TOP_K = 1000
|
15 |
BASE_COUNT=4
|
16 |
-
MAX_COUNT =
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
gr.Markdown(
|
@@ -57,7 +57,7 @@ with gr.Blocks() as demo:
|
|
57 |
with gr.Row():
|
58 |
with gr.Column(scale=1):
|
59 |
adv_input_image = gr.Image(type="pil")
|
60 |
-
adv_image_count = gr.Slider(1, MAX_COUNT,
|
61 |
adv_button = gr.Button("Submit")
|
62 |
|
63 |
with gr.Column(scale=2):
|
@@ -86,9 +86,9 @@ with gr.Blocks() as demo:
|
|
86 |
)
|
87 |
gr.Examples(
|
88 |
examples=[
|
89 |
-
[dataset["train"][6]["image"],
|
90 |
-
[dataset["train"][7]["image"],
|
91 |
-
[dataset["train"][8]["image"],
|
92 |
],
|
93 |
inputs=[adv_input_image, adv_image_count],
|
94 |
outputs=adv_output_images,
|
|
|
13 |
|
14 |
TOP_K = 1000
|
15 |
BASE_COUNT=4
|
16 |
+
MAX_COUNT = 10
|
17 |
|
18 |
with gr.Blocks() as demo:
|
19 |
gr.Markdown(
|
|
|
57 |
with gr.Row():
|
58 |
with gr.Column(scale=1):
|
59 |
adv_input_image = gr.Image(type="pil")
|
60 |
+
adv_image_count = gr.Slider(1, MAX_COUNT, BASE_COUNT, label="Image Count")
|
61 |
adv_button = gr.Button("Submit")
|
62 |
|
63 |
with gr.Column(scale=2):
|
|
|
86 |
)
|
87 |
gr.Examples(
|
88 |
examples=[
|
89 |
+
[dataset["train"][6]["image"], BASE_COUNT],
|
90 |
+
[dataset["train"][7]["image"], BASE_COUNT],
|
91 |
+
[dataset["train"][8]["image"], BASE_COUNT],
|
92 |
],
|
93 |
inputs=[adv_input_image, adv_image_count],
|
94 |
outputs=adv_output_images,
|