sneha commited on
Commit
274fcd8
Β·
1 Parent(s): 2aa44d9

move to imgs dir, read all images

Browse files
app.py CHANGED
@@ -98,6 +98,7 @@ output_img = gr.Image(shape=(250,250))
98
  output_plot = gr.Plot()
99
 
100
  demo = gr.Interface(fn=run_attn, title="Visual Cortex Base Model",
101
- examples=["./trifinger.jpg","./rearrange.jpg","./kitchen.jpg","./ego4d.jpg"],
 
102
  inputs=input_img,outputs=[output_img,output_plot])
103
  demo.launch()
 
98
  output_plot = gr.Plot()
99
 
100
  demo = gr.Interface(fn=run_attn, title="Visual Cortex Base Model",
101
+ #examples=["./trifinger.jpg","./rearrange.jpg","./kitchen.jpg","./ego4d.jpg"],
102
+ examples=[x for x in os.listdir(os.path.join(os.getcwd(),'imgs')) if 'jpg' in x]
103
  inputs=input_img,outputs=[output_img,output_plot])
104
  demo.launch()
adroit1.jpg β†’ imgs/adroit1.jpg RENAMED
File without changes
cheetah.jpg β†’ imgs/cheetah.jpg RENAMED
File without changes
ego4d.jpg β†’ imgs/ego4d.jpg RENAMED
File without changes
kitchen.jpg β†’ imgs/kitchen.jpg RENAMED
File without changes
reacher.jpg β†’ imgs/reacher.jpg RENAMED
File without changes
rearrange.jpg β†’ imgs/rearrange.jpg RENAMED
File without changes
trifinger.jpg β†’ imgs/trifinger.jpg RENAMED
File without changes
walker.jpg β†’ imgs/walker.jpg RENAMED
File without changes