JelenaBickovska commited on
Commit
74734f2
1 Parent(s): 12b40ab

new style model: new datasets

Browse files
Files changed (3) hide show
  1. app.py +3 -2
  2. export.pkl +2 -2
  3. styles20230416.pkl +0 -3
app.py CHANGED
@@ -7,10 +7,11 @@ import numpy as np
7
 
8
  def is_cat(x): return x[0].isupper()
9
 
10
- learn = load_learner('styles20230416.pkl')
11
 
12
  #categories = ('cool-colors', 'earth-tones', 'jewel', 'neutral-colors', 'pastel', 'warm-colors')
13
- categories = ('classic', 'coastal', 'contamporary', 'industrial', 'midcentury', 'pacific-northwest', 'shabby chic')
 
14
  def classify_image(img):
15
  pred, idx, probs = learn.predict(img)
16
  return dict(zip(categories, map(float, probs)))
 
7
 
8
  def is_cat(x): return x[0].isupper()
9
 
10
+ learn = load_learner('export.pkl')
11
 
12
  #categories = ('cool-colors', 'earth-tones', 'jewel', 'neutral-colors', 'pastel', 'warm-colors')
13
+
14
+ categories = ('classic', 'coastal', 'contemporary', 'industrial', 'midcentury', 'pacific-northwest', 'shabby chic')
15
  def classify_image(img):
16
  pred, idx, probs = learn.predict(img)
17
  return dict(zip(categories, map(float, probs)))
export.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e975047632d3c69f2aedf9843d3298c9c2837be33b46044ada0d2296fd97cffa
3
- size 47286379
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb6b11ad4d623a21260f936444ecf40302710bbd162839616a5de294ce6c0ea2
3
+ size 48966187
styles20230416.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b814950da10bf313d094fd746ad261eaeb2fba7c175295488b09391212ff26d9
3
- size 47503403