Spaces:
Runtime error
Runtime error
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("
|
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('
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3e1b9ea7dd7fb701bea2a554906221065c159c39752114e8d7d87edfd6845d7a
|
3 |
+
size 109031711
|
genre_types_encoded.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"
|
|
|
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}
|