akhaliq HF staff commited on
Commit
8372848
1 Parent(s): ee20737

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,11 +13,11 @@ mx.test_utils.download('https://s3.amazonaws.com/onnx-model-zoo/synset.txt')
13
  with open('synset.txt', 'r') as f:
14
  labels = [l.rstrip() for l in f]
15
 
16
- os.system("wget https://github.com/AK391/models/raw/main/vision/classification/resnet/model/resnet50-v1-12-int8.onnx")
17
 
18
  # Enter path to the ONNX model file
19
 
20
- sym, arg_params, aux_params = import_model('resnet50-v1-12-int8.onnx')
21
 
22
  Batch = namedtuple('Batch', ['data'])
23
  def get_image(path, show=False):
 
13
  with open('synset.txt', 'r') as f:
14
  labels = [l.rstrip() for l in f]
15
 
16
+ os.system("wget https://github.com/onnx/models/raw/main/vision/classification/resnet/model/resnet18-v2-7.onnx")
17
 
18
  # Enter path to the ONNX model file
19
 
20
+ sym, arg_params, aux_params = import_model('resnet18-v2-7.onnx')
21
 
22
  Batch = namedtuple('Batch', ['data'])
23
  def get_image(path, show=False):