Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,9 +32,7 @@ import torch
|
|
| 32 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 33 |
|
| 34 |
if device != 'cuda':
|
| 35 |
-
st.markdown(f"
|
| 36 |
-
"a CUDA-enabled GPU. If on colab you can change this by "
|
| 37 |
-
"clicking Runtime > change runtime type > GPU.")
|
| 38 |
|
| 39 |
model = SentenceTransformer("all-MiniLM-L6-v2", device=device)
|
| 40 |
st.divider()
|
|
|
|
| 32 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
| 33 |
|
| 34 |
if device != 'cuda':
|
| 35 |
+
st.markdown(f"Note: Using {device}. Expected slow responses compare to CUDA-enabled GPU. Please be patient thanks")
|
|
|
|
|
|
|
| 36 |
|
| 37 |
model = SentenceTransformer("all-MiniLM-L6-v2", device=device)
|
| 38 |
st.divider()
|