wjlin commited on
Commit
4faa523
·
1 Parent(s): e9a3642

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -227,12 +227,12 @@ with gr.Blocks() as demo:
227
  img_in1 = gr.Image(label="Cover Image", type="pil")
228
  img_in2 = gr.Image(label="Image to be hidden", type="pil")
229
  with gr.Row():
230
- ex1 = gr.Examples(examples=["./lena_color.gif", "./ishihara.png", "./image1.jpg",
231
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
232
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
233
  "./4.2.03.jpg","./4.2.05.jpg",
234
  "./4.2.07.jpg"],examples_per_page=5,inputs=[img_in1])
235
- ex2 = gr.Examples(examples=["./lena_color.gif", "./ishihara.png", "./image1.jpg",
236
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
237
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
238
  "./4.2.03.jpg","./4.2.05.jpg",
@@ -251,7 +251,7 @@ with gr.Blocks() as demo:
251
  with gr.Row():
252
  img_color_input = gr.Image()
253
  with gr.Row():
254
- ex3 = gr.Examples(examples=["./lena_color.gif", "./ishihara.png", "./image1.jpg",
255
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
256
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
257
  "./4.2.03.jpg","./4.2.05.jpg",
@@ -270,7 +270,7 @@ with gr.Blocks() as demo:
270
  with gr.Row():
271
  img_input = gr.Image()
272
  with gr.Row():
273
- ex4 = gr.Examples(examples=["./lena_color.gif", "./ishihara.png", "./image1.jpg",
274
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
275
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
276
  "./4.2.03.jpg","./4.2.05.jpg",
@@ -295,7 +295,7 @@ with gr.Blocks() as demo:
295
  m_in = gr.Textbox(label="Medium", placeholder="# colors")
296
  l_in = gr.Textbox(label="Low", placeholder="# colors")
297
  with gr.Row():
298
- ex5 = gr.Examples(examples=["./lena_color.gif", "./ishihara.png", "./image1.jpg",
299
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
300
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
301
  "./4.2.03.jpg","./4.2.05.jpg",
@@ -312,7 +312,7 @@ with gr.Blocks() as demo:
312
  image_output1 = gr.Image(label="brighter image")
313
  image_output2 = gr.Image(label="darker image")
314
  with gr.Row():
315
- ex6 = gr.Examples(examples=["./lena_color.gif", "./ishihara.png", "./image1.jpg",
316
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
317
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
318
  "./4.2.03.jpg","./4.2.05.jpg",
@@ -324,7 +324,7 @@ with gr.Blocks() as demo:
324
  with gr.Row():
325
  image_hist_input = gr.Image(label="source image", type="pil")
326
  with gr.Row():
327
- ex6 = gr.Examples(examples=["./lena_color.gif", "./ishihara.png", "./image1.jpg",
328
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
329
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
330
  "./4.2.03.jpg","./4.2.05.jpg",
 
227
  img_in1 = gr.Image(label="Cover Image", type="pil")
228
  img_in2 = gr.Image(label="Image to be hidden", type="pil")
229
  with gr.Row():
230
+ ex1 = gr.Examples(examples=["./lena_color.gif", "./Ishihara.png", "./image1.jpg",
231
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
232
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
233
  "./4.2.03.jpg","./4.2.05.jpg",
234
  "./4.2.07.jpg"],examples_per_page=5,inputs=[img_in1])
235
+ ex2 = gr.Examples(examples=["./lena_color.gif", "./Ishihara.png", "./image1.jpg",
236
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
237
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
238
  "./4.2.03.jpg","./4.2.05.jpg",
 
251
  with gr.Row():
252
  img_color_input = gr.Image()
253
  with gr.Row():
254
+ ex3 = gr.Examples(examples=["./lena_color.gif", "./Ishihara.png", "./image1.jpg",
255
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
256
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
257
  "./4.2.03.jpg","./4.2.05.jpg",
 
270
  with gr.Row():
271
  img_input = gr.Image()
272
  with gr.Row():
273
+ ex4 = gr.Examples(examples=["./lena_color.gif", "./Ishihara.png", "./image1.jpg",
274
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
275
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
276
  "./4.2.03.jpg","./4.2.05.jpg",
 
295
  m_in = gr.Textbox(label="Medium", placeholder="# colors")
296
  l_in = gr.Textbox(label="Low", placeholder="# colors")
297
  with gr.Row():
298
+ ex5 = gr.Examples(examples=["./lena_color.gif", "./Ishihara.png", "./image1.jpg",
299
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
300
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
301
  "./4.2.03.jpg","./4.2.05.jpg",
 
312
  image_output1 = gr.Image(label="brighter image")
313
  image_output2 = gr.Image(label="darker image")
314
  with gr.Row():
315
+ ex6 = gr.Examples(examples=["./lena_color.gif", "./Ishihara.png", "./image1.jpg",
316
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
317
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
318
  "./4.2.03.jpg","./4.2.05.jpg",
 
324
  with gr.Row():
325
  image_hist_input = gr.Image(label="source image", type="pil")
326
  with gr.Row():
327
+ ex6 = gr.Examples(examples=["./lena_color.gif", "./Ishihara.png", "./image1.jpg",
328
  "./IMG_1955.jpg","./IMG_1958.jpg","./cars.jpg","./cycle.jpg",
329
  "./fish.jpg","./4.1.01.jpg","./4.1.04.jpg",
330
  "./4.2.03.jpg","./4.2.05.jpg",