Spaces:
Runtime error
Runtime error
Xu Ma
commited on
Commit
•
69fde70
1
Parent(s):
74a311b
Update app.py
Browse files
app.py
CHANGED
@@ -300,9 +300,10 @@ def main(args):
|
|
300 |
|
301 |
# inputs
|
302 |
inputs = [
|
303 |
-
|
304 |
inputs_img, # input image
|
305 |
experiment_id, # path adding scheduler
|
|
|
306 |
]
|
307 |
# outputs
|
308 |
outputs = gr.outputs.Image(type="numpy", label="Vectorized Image")
|
@@ -317,27 +318,22 @@ def main(args):
|
|
317 |
# examples
|
318 |
examples = [
|
319 |
[
|
320 |
-
None,
|
321 |
"./examples/1.png",
|
322 |
"add [1, 1, 1, 1, 1] total 5 paths",
|
323 |
],
|
324 |
[
|
325 |
-
None,
|
326 |
"./examples/2.png",
|
327 |
"add [1, 1, 1, 1, 1] total 5 paths",
|
328 |
],
|
329 |
[
|
330 |
-
None,
|
331 |
"./examples/3.jpg",
|
332 |
"add [1,2,4,8,16,32, ...] total 128 paths",
|
333 |
],
|
334 |
[
|
335 |
-
None,
|
336 |
"./examples/4.png",
|
337 |
"add [1,2,4,8,16,32, ...] total 256 paths",
|
338 |
],
|
339 |
[
|
340 |
-
None,
|
341 |
"./examples/5.png",
|
342 |
"add [1, 1, 1, 1, 1] total 5 paths",
|
343 |
],
|
|
|
300 |
|
301 |
# inputs
|
302 |
inputs = [
|
303 |
+
|
304 |
inputs_img, # input image
|
305 |
experiment_id, # path adding scheduler
|
306 |
+
inputs_update, # update output
|
307 |
]
|
308 |
# outputs
|
309 |
outputs = gr.outputs.Image(type="numpy", label="Vectorized Image")
|
|
|
318 |
# examples
|
319 |
examples = [
|
320 |
[
|
|
|
321 |
"./examples/1.png",
|
322 |
"add [1, 1, 1, 1, 1] total 5 paths",
|
323 |
],
|
324 |
[
|
|
|
325 |
"./examples/2.png",
|
326 |
"add [1, 1, 1, 1, 1] total 5 paths",
|
327 |
],
|
328 |
[
|
|
|
329 |
"./examples/3.jpg",
|
330 |
"add [1,2,4,8,16,32, ...] total 128 paths",
|
331 |
],
|
332 |
[
|
|
|
333 |
"./examples/4.png",
|
334 |
"add [1,2,4,8,16,32, ...] total 256 paths",
|
335 |
],
|
336 |
[
|
|
|
337 |
"./examples/5.png",
|
338 |
"add [1, 1, 1, 1, 1] total 5 paths",
|
339 |
],
|