Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,11 +3,8 @@ from torch import nn
|
|
3 |
from transformers import AutoModel, AutoTokenizer
|
4 |
import gradio as gr
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
device = torch.device("cuda")
|
9 |
-
else:
|
10 |
-
device = torch.device("cpu")
|
11 |
|
12 |
|
13 |
class RaceClassifier(nn.Module):
|
|
|
3 |
from transformers import AutoModel, AutoTokenizer
|
4 |
import gradio as gr
|
5 |
|
6 |
+
|
7 |
+
device = torch.device("cpu")
|
|
|
|
|
|
|
8 |
|
9 |
|
10 |
class RaceClassifier(nn.Module):
|