Spaces:
Sleeping
Sleeping
Vishnu-add
commited on
Commit
•
b33c6ec
1
Parent(s):
bb6a0e4
Changed the device
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ from langchain.chains import RetrievalQA
|
|
11 |
|
12 |
@st.cache_resource
|
13 |
def get_model():
|
14 |
-
|
15 |
-
device = torch.device('cuda:0')
|
16 |
|
17 |
checkpoint = "LaMini-T5-738M"
|
18 |
checkpoint = "MBZUAI/LaMini-T5-738M"
|
|
|
11 |
|
12 |
@st.cache_resource
|
13 |
def get_model():
|
14 |
+
device = torch.device('cpu')
|
15 |
+
# device = torch.device('cuda:0')
|
16 |
|
17 |
checkpoint = "LaMini-T5-738M"
|
18 |
checkpoint = "MBZUAI/LaMini-T5-738M"
|