Spaces:
Running
Running
Commit
·
b1b7eec
1
Parent(s):
1743490
Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def inference_dataset(file_object):
|
|
85 |
def inference_dataset(file_object, option_list):
|
86 |
tokenizer = AutoTokenizer.from_pretrained(inference_modelpath)
|
87 |
model = AutoModelForSequenceClassification.from_pretrained(inference_modelpath)
|
88 |
-
data_path = open(file_object, 'r')
|
89 |
df = pd.read_csv(data_path, delimiter='\t', header=0, names=['id', 'text'])
|
90 |
ids = df["id"].tolist()
|
91 |
texts = df["text"].tolist()
|
|
|
85 |
def inference_dataset(file_object, option_list):
|
86 |
tokenizer = AutoTokenizer.from_pretrained(inference_modelpath)
|
87 |
model = AutoModelForSequenceClassification.from_pretrained(inference_modelpath)
|
88 |
+
data_path = open(file_object.name, 'r')
|
89 |
df = pd.read_csv(data_path, delimiter='\t', header=0, names=['id', 'text'])
|
90 |
ids = df["id"].tolist()
|
91 |
texts = df["text"].tolist()
|