Adityak204 commited on
Commit
e927cf1
·
1 Parent(s): 905e42f

Comment examples

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -124,22 +124,22 @@ iface = gr.Interface(
124
  outputs=gr.Label(num_top_classes=5),
125
  title="ImageNet-1K Classification",
126
  description="Upload an image to classify it into one of 1000 ImageNet categories",
127
- examples=(
128
- [
129
- ["ResNetVision-1K/data/ILSVRC2012_val_00000048.JPEG"],
130
- ["ResNetVision-1K/data/ILSVRC2012_val_00000090.JPEG"],
131
- ["ResNetVision-1K/data/ILSVRC2012_val_00000.JPEG"],
132
- ]
133
- if all(
134
- Path(f).exists()
135
- for f in [
136
- ["ResNetVision-1K/data/ILSVRC2012_val_00000048.JPEG"],
137
- ["ResNetVision-1K/data/ILSVRC2012_val_00000090.JPEG"],
138
- ["ResNetVision-1K/data/ILSVRC2012_val_00000.JPEG"],
139
- ]
140
- )
141
- else None
142
- ),
143
  analytics_enabled=False,
144
  )
145
 
 
124
  outputs=gr.Label(num_top_classes=5),
125
  title="ImageNet-1K Classification",
126
  description="Upload an image to classify it into one of 1000 ImageNet categories",
127
+ # examples=(
128
+ # [
129
+ # ["ResNetVision-1K/data/ILSVRC2012_val_00000048.JPEG"],
130
+ # ["ResNetVision-1K/data/ILSVRC2012_val_00000090.JPEG"],
131
+ # ["ResNetVision-1K/data/ILSVRC2012_val_00000.JPEG"],
132
+ # ]
133
+ # if all(
134
+ # Path(f).exists()
135
+ # for f in [
136
+ # ["ResNetVision-1K/data/ILSVRC2012_val_00000048.JPEG"],
137
+ # ["ResNetVision-1K/data/ILSVRC2012_val_00000090.JPEG"],
138
+ # ["ResNetVision-1K/data/ILSVRC2012_val_00000.JPEG"],
139
+ # ]
140
+ # )
141
+ # else None
142
+ # ),
143
  analytics_enabled=False,
144
  )
145