abrar-adnan commited on
Commit
3781516
1 Parent(s): 48e554e

updated game classifier

Browse files
app.py CHANGED
@@ -3,14 +3,14 @@ import onnxruntime as rt
3
  from transformers import AutoTokenizer
4
  import torch, json
5
 
6
- tokenizer = AutoTokenizer.from_pretrained("distilroberta-base")
7
 
8
  with open("genre_types_encoded.json", "r") as fp:
9
  encode_genre_types = json.load(fp)
10
 
11
  genres = list(encode_genre_types.keys())
12
 
13
- inf_session = rt.InferenceSession('book-classifier-quantized.onnx')
14
  input_name = inf_session.get_inputs()[0].name
15
  output_name = inf_session.get_outputs()[0].name
16
 
 
3
  from transformers import AutoTokenizer
4
  import torch, json
5
 
6
+ tokenizer = AutoTokenizer.from_pretrained("bert-base-cased")
7
 
8
  with open("genre_types_encoded.json", "r") as fp:
9
  encode_genre_types = json.load(fp)
10
 
11
  genres = list(encode_genre_types.keys())
12
 
13
+ inf_session = rt.InferenceSession('game-classifier-quantized.onnx')
14
  input_name = inf_session.get_inputs()[0].name
15
  output_name = inf_session.get_outputs()[0].name
16
 
book-classifier-quantized.onnx → game-classifier-quantized.onnx RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:88878f0b1ea7abd89481f2cd1b5ce9a7ffa21730ec55c1a96b5dafc2d8e127a3
3
- size 82506122
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e1b9ea7dd7fb701bea2a554906221065c159c39752114e8d7d87edfd6845d7a
3
+ size 109031711
genre_types_encoded.json CHANGED
@@ -1 +1 @@
1
- {"Action": 0, "Beat-'Em-Up": 1, "Fighting": 2, "2D": 3, "Platformer": 4, "Adventure": 5, "3D": 6, "First-Person": 7, "General": 8, "Shooter": 9, "Arcade": 10, "Miscellaneous": 11, "Party / Minigame": 12, "Role-Playing": 13, "Strategy": 14, "Real-Time": 15, "Japanese-Style": 16, "Tactics": 17, "Visual Novel": 18, "Action Adventure": 19, "Open-World": 20, "Third-Person": 21, "Puzzle": 22, "Rhythm": 23, "Music": 24, "Linear": 25, "Simulation": 26, "Vehicle": 27, "Racing": 28, "Automobile": 29, "Turn-Based": 30, "Action RPG": 31, "Sports": 32, "Team": 33, "Sim": 34, "Shoot-'Em-Up": 35, "Top-Down": 36, "Individual": 37, "Combat": 38, "Vertical": 39, "Horizontal": 40, "Virtual": 41, "Career": 42, "Survival": 43, "Point-and-Click": 44, "Compilation": 45, "Metroidvania": 46, "Management": 47, "Business / Tycoon": 48, "Tactical": 49, "Virtual Life": 50}
 
1
+ {"Miscellaneous": 0, "Compilation": 1, "Action": 2, "General": 3, "Platformer": 4, "2D": 5, "Simulation": 6, "Virtual": 7, "Virtual Life": 8, "Puzzle": 9, "Logic": 10, "Flight": 11, "Shooter": 12, "Shoot-'Em-Up": 13, "Combat": 14, "Vertical": 15, "Beat-'Em-Up": 16, "Driving": 17, "Racing": 18, "Arcade": 19, "Other": 20, "Automobile": 21, "Fighting": 22, "Horizontal": 23, "nan": 24, "Board Games": 25, "Board / Card Game": 26, "Adventure": 27, "3D": 28, "First-Person": 29, "Matching": 30, "Role-Playing": 31, "Japanese-Style": 32, "Vehicle": 33, "Action Adventure": 34, "Fantasy": 35, "Third-Person": 36, "Open-World": 37, "Sports": 38, "Individual": 39, "Strategy": 40, "Turn-Based": 41, "Tactics": 42, "Career": 43, "Visual Novel": 44, "Team": 45, "Edutainment": 46, "Hidden Object": 47, "Party / Minigame": 48, "Sandbox": 49, "Sci-Fi": 50, "Tactical": 51, "Card Battle": 52, "Rhythm": 53, "Music": 54, "Real-Time": 55, "Defense": 56, "Top-Down": 57, "Light Gun": 58, "Action RPG": 59, "Historic": 60, "Management": 61, "Business / Tycoon": 62, "Survival": 63, "Civilian": 64, "Linear": 65, "Sim": 66, "Modern": 67, "Point-and-Click": 68, "Government": 69, "Massively Multiplayer": 70, "Text": 71, "Massively Multiplayer Online": 72}