Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ def tokenize_function(examples):
|
|
13 |
max_length=256)
|
14 |
|
15 |
def predict(text):
|
16 |
-
# Convert test dataframe to Hugging Face
|
17 |
test_dataset = Dataset.from_pandas(pd.DataFrame(text,columns=['text']))
|
18 |
|
19 |
# Apply the tokenization function to the train dataset
|
|
|
13 |
max_length=256)
|
14 |
|
15 |
def predict(text):
|
16 |
+
# Convert test dataframe to Hugging Face
|
17 |
test_dataset = Dataset.from_pandas(pd.DataFrame(text,columns=['text']))
|
18 |
|
19 |
# Apply the tokenization function to the train dataset
|