Paolo-Fraccaro commited on
Commit
d041e2c
1 Parent(s): 389fc1a

add path building

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -439,15 +439,15 @@ with gr.Blocks() as demo:
439
  out8_pred_t2,
440
  out9_pred_t3])
441
  with gr.Row():
442
- gr.Examples(examples=[["HLS.L30.T13REN.2018013T172747.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif",
443
- "HLS.L30.T13REN.2018029T172738.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif",
444
- "HLS.L30.T13REN.2018061T172724.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"],
445
- ["HLS.L30.T17RMP.2018004T155509.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif",
446
- "HLS.L30.T17RMP.2018036T155452.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif",
447
- "HLS.L30.T17RMP.2018068T155438.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"],
448
- ["HLS.L30.T18TVL.2018029T154533.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif",
449
- "HLS.L30.T18TVL.2018141T154435.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif",
450
- "HLS.L30.T18TVL.2018189T154446.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"]],
451
  inputs=inp_files,
452
  outputs=[out1_orig_t1,
453
  out2_orig_t2,
@@ -458,9 +458,9 @@ with gr.Blocks() as demo:
458
  out7_pred_t1,
459
  out8_pred_t2,
460
  out9_pred_t3],
461
- preprocess=preprocess_example,
462
  fn=func,
463
- cache_examples=True,
464
  )
465
 
466
 
 
439
  out8_pred_t2,
440
  out9_pred_t3])
441
  with gr.Row():
442
+ gr.Examples(examples=[[os.path.join(os.path.dirname(__file__), "HLS.L30.T13REN.2018013T172747.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"),
443
+ os.path.join(os.path.dirname(__file__), "HLS.L30.T13REN.2018029T172738.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"),
444
+ os.path.join(os.path.dirname(__file__), "HLS.L30.T13REN.2018061T172724.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif")],
445
+ [os.path.join(os.path.dirname(__file__), "HLS.L30.T17RMP.2018004T155509.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"),
446
+ os.path.join(os.path.dirname(__file__), "HLS.L30.T17RMP.2018036T155452.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"),
447
+ os.path.join(os.path.dirname(__file__), "HLS.L30.T17RMP.2018068T155438.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif")],
448
+ [os.path.join(os.path.dirname(__file__), "HLS.L30.T18TVL.2018029T154533.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"),
449
+ os.path.join(os.path.dirname(__file__), "HLS.L30.T18TVL.2018141T154435.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif"),
450
+ os.path.join(os.path.dirname(__file__), "HLS.L30.T18TVL.2018189T154446.v2.0.B02.B03.B04.B05.B06.B07_cropped.tif")]],
451
  inputs=inp_files,
452
  outputs=[out1_orig_t1,
453
  out2_orig_t2,
 
458
  out7_pred_t1,
459
  out8_pred_t2,
460
  out9_pred_t3],
461
+ # preprocess=preprocess_example,
462
  fn=func,
463
+ cache_examples=True
464
  )
465
 
466