Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,6 @@ st.sidebar.success("Load Successfully!")
|
|
43 |
|
44 |
if not torch.cuda.is_available():
|
45 |
print("Warning: No GPU found. Please add GPU to your notebook")
|
46 |
-
torch.load(path, map_location='cpu')
|
47 |
|
48 |
#We use the Bi-Encoder to encode all passages, so that we can use it with sematic search
|
49 |
bi_encoder = SentenceTransformer(option1)
|
|
|
43 |
|
44 |
if not torch.cuda.is_available():
|
45 |
print("Warning: No GPU found. Please add GPU to your notebook")
|
|
|
46 |
|
47 |
#We use the Bi-Encoder to encode all passages, so that we can use it with sematic search
|
48 |
bi_encoder = SentenceTransformer(option1)
|