Spaces:
Sleeping
Sleeping
themeetjani
commited on
Commit
•
43451e6
1
Parent(s):
1ebcf26
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import pandas as pd
|
|
10 |
from transformers import BertTokenizer, BertModel
|
11 |
from torch import cuda
|
12 |
import gradio as gr
|
13 |
-
|
14 |
|
15 |
class RobertaClass(torch.nn.Module):
|
16 |
def __init__(self):
|
|
|
10 |
from transformers import BertTokenizer, BertModel
|
11 |
from torch import cuda
|
12 |
import gradio as gr
|
13 |
+
device = 'cuda' if cuda.is_available() else 'cpu'
|
14 |
|
15 |
class RobertaClass(torch.nn.Module):
|
16 |
def __init__(self):
|