jpterry commited on
Commit
8514431
·
1 Parent(s): 096b8bd

just automodel

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -270,7 +270,7 @@ def predict_and_analyze(model_name, num_channels, dim, input_channel, image):
270
  # model = EfficientNetPreTrained.from_pretrained(model_loading_name)
271
  # model = AutoModel.from_pretrained(model_loading_name, trust_remote_code=True)
272
 
273
- model = AutoModelForImageClassification.from_pretrained(model_path + model_loading_name)
274
 
275
  # model = EfficientNet(dropout=hparams.dropout,
276
  # num_channels=hparams.num_channels,
 
270
  # model = EfficientNetPreTrained.from_pretrained(model_loading_name)
271
  # model = AutoModel.from_pretrained(model_loading_name, trust_remote_code=True)
272
 
273
+ model = AutoModel.from_pretrained(model_path + model_loading_name)
274
 
275
  # model = EfficientNet(dropout=hparams.dropout,
276
  # num_channels=hparams.num_channels,