Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ eval_df = pd.DataFrame({"text": X_test, "labels": y_test})
|
|
| 43 |
|
| 44 |
|
| 45 |
# Create a ClassificationModel
|
| 46 |
-
model = ClassificationModel("bert", "bert-base-uncased", use_cuda=
|
| 47 |
|
| 48 |
# Train the model
|
| 49 |
model.train_model(train_df)
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
# Create a ClassificationModel
|
| 46 |
+
model = ClassificationModel("bert", "bert-base-uncased", use_cuda=False) # Set use_cuda=True if you have a GPU
|
| 47 |
|
| 48 |
# Train the model
|
| 49 |
model.train_model(train_df)
|