guangkaixu commited on
Commit
6e65e24
·
verified ·
1 Parent(s): 4d1a7d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -341,7 +341,7 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis):
341
  Examples(
342
  fn=process_pipe_normal,
343
  examples=[
344
- os.path.join(example_folder, name)
345
  for name in filenames
346
  ],
347
  inputs=[normal_image_input],
@@ -392,10 +392,10 @@ def run_demo_server(pipe_depth, pipe_normal, pipe_dis):
392
 
393
  filenames = []
394
  filenames.extend(["dis_%d.jpg" %(i+1) for i in range(10)])
395
- # example_folder = "images"
396
  print('line 396', __file__)
397
- example_folder = os.path.join(os.path.dirname(__file__), "images")
398
- print(example_folder)
399
  Examples(
400
  fn=process_pipe_dis,
401
  examples=[
 
341
  Examples(
342
  fn=process_pipe_normal,
343
  examples=[
344
+ os.path.join("images", name)
345
  for name in filenames
346
  ],
347
  inputs=[normal_image_input],
 
392
 
393
  filenames = []
394
  filenames.extend(["dis_%d.jpg" %(i+1) for i in range(10)])
395
+ example_folder = "images"
396
  print('line 396', __file__)
397
+ # example_folder = os.path.join(os.path.dirname(__file__), "images")
398
+ # print(example_folder)
399
  Examples(
400
  fn=process_pipe_dis,
401
  examples=[