blanchon commited on
Commit
dc5a588
1 Parent(s): 0fd22de

Use external image to fix examples preview

Browse files
Files changed (1) hide show
  1. app.py +20 -4
app.py CHANGED
@@ -219,7 +219,11 @@ with gr.Blocks() as demo:
219
  "layers": [],
220
  "composite": "./examples/ex1_mask.png",
221
  },
222
- ("./examples/ex1.jpg", "./examples/ex1_result.png"),
 
 
 
 
223
  ],
224
  [
225
  {
@@ -227,7 +231,11 @@ with gr.Blocks() as demo:
227
  "layers": [],
228
  "composite": "./examples/ex2_mask.png",
229
  },
230
- ("./examples/ex2.jpg", "./examples/ex2_result.png"),
 
 
 
 
231
  ],
232
  [
233
  {
@@ -235,7 +243,11 @@ with gr.Blocks() as demo:
235
  "layers": [],
236
  "composite": "./examples/ex3_mask.png",
237
  },
238
- ("./examples/ex3.jpg", "./examples/ex3_result.png"),
 
 
 
 
239
  ],
240
  [
241
  {
@@ -243,7 +255,11 @@ with gr.Blocks() as demo:
243
  "layers": [],
244
  "composite": "./examples/ex4_mask.png",
245
  },
246
- ("./examples/ex4.jpg", "./examples/ex4_result.png"),
 
 
 
 
247
  ],
248
  ]
249
 
 
219
  "layers": [],
220
  "composite": "./examples/ex1_mask.png",
221
  },
222
+ # ("./examples/ex1.jpg", "./examples/ex1_result.png"),
223
+ (
224
+ "https://dropshare.blanchon.xyz/public/dropshare/ex1.jpg",
225
+ "https://dropshare.blanchon.xyz/public/dropshare/ex1_result.png",
226
+ ),
227
  ],
228
  [
229
  {
 
231
  "layers": [],
232
  "composite": "./examples/ex2_mask.png",
233
  },
234
+ # ("./examples/ex2.jpg", "./examples/ex2_result.png"),
235
+ (
236
+ "https://dropshare.blanchon.xyz/public/dropshare/ex2.jpg",
237
+ "https://dropshare.blanchon.xyz/public/dropshare/ex2_result.png",
238
+ ),
239
  ],
240
  [
241
  {
 
243
  "layers": [],
244
  "composite": "./examples/ex3_mask.png",
245
  },
246
+ # ("./examples/ex3.jpg", "./examples/ex3_result.png"),
247
+ (
248
+ "https://dropshare.blanchon.xyz/public/dropshare/ex3.jpg",
249
+ "https://dropshare.blanchon.xyz/public/dropshare/ex3_result.png",
250
+ ),
251
  ],
252
  [
253
  {
 
255
  "layers": [],
256
  "composite": "./examples/ex4_mask.png",
257
  },
258
+ # ("./examples/ex4.jpg", "./examples/ex4_result.png"),
259
+ (
260
+ "https://dropshare.blanchon.xyz/public/dropshare/ex4.jpg",
261
+ "https://dropshare.blanchon.xyz/public/dropshare/ex4_result.png",
262
+ ),
263
  ],
264
  ]
265