Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,8 @@ if st.button('Load Model', disabled=False):
|
|
36 |
return_tensors = 'pt'
|
37 |
)
|
38 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
39 |
-
|
|
|
40 |
def predict(new_sentence):
|
41 |
# We need Token IDs and Attention Mask for inference on the new sentence
|
42 |
test_ids = []
|
|
|
36 |
return_tensors = 'pt'
|
37 |
)
|
38 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
39 |
+
with col1:
|
40 |
+
st.success("Model Loaded!")
|
41 |
def predict(new_sentence):
|
42 |
# We need Token IDs and Attention Mask for inference on the new sentence
|
43 |
test_ids = []
|