Spaces:
Runtime error
Runtime error
Update app.py
Browse files7 unmodified lines89101112131415161718197 unmodified lineseg_text = ' 酒店的地理位置实在不错,所以从大堂开始就令人惊艳。城景房不但在房间可以看到上海的美景'name = 'bert-base-chinese'max_len = 128n_class = 2device = torch.device("cuda" if torch.cuda.is_available() else "cpu")tokenizer_cn = AutoTokenizer.from_pretrained(name)voc_size = len(tokenizer_cn.vocab)name_list = ['Negative review', 'Positive review']7 unmodified lines89101112131415161718197 unmodified lineseg_text = ' 酒店的地理位置实在不错,所以从大堂开始就令人惊艳。城景房不但在房间可以看到上海的美景'model_name = 'bert-base-chinese'max_len = 128n_class = 2device = torch.device("cuda" if torch.cuda.is_available() else "cpu")tokenizer_cn = AutoTokenizer.from_pretrained(model_name)voc_size = len(tokenizer_cn.vocab)name_list = ['Negative review', 'Positive review']
app.py+2-2