Dunateo commited on
Commit
b93f72d
·
1 Parent(s): e626fb9

fix pb with label dict

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -4,9 +4,6 @@ from huggingface_hub import hf_hub_download
4
  import torch
5
  import json
6
 
7
- global label_dict
8
- label_dict = {}
9
-
10
  def predict(text):
11
  inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=512)
12
 
 
4
  import torch
5
  import json
6
 
 
 
 
7
  def predict(text):
8
  inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True, max_length=512)
9