flushing streamlit error
Browse files
app.py
CHANGED
|
@@ -14,6 +14,9 @@ from langchain import text_splitter
|
|
| 14 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 15 |
from langchain.document_loaders import PyPDFLoader
|
| 16 |
|
|
|
|
|
|
|
|
|
|
| 17 |
device = torch.device("cpu")
|
| 18 |
if torch.cuda.is_available():
|
| 19 |
print("Training on GPU")
|
|
|
|
| 14 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
| 15 |
from langchain.document_loaders import PyPDFLoader
|
| 16 |
|
| 17 |
+
from st import runtime
|
| 18 |
+
runtime.exists()
|
| 19 |
+
|
| 20 |
device = torch.device("cpu")
|
| 21 |
if torch.cuda.is_available():
|
| 22 |
print("Training on GPU")
|