Update app.py
Browse files
app.py
CHANGED
@@ -77,7 +77,7 @@ def main():
|
|
77 |
|
78 |
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
|
79 |
|
80 |
-
|
81 |
|
82 |
embeddings = load_prep_data()
|
83 |
|
@@ -92,6 +92,8 @@ def main():
|
|
92 |
|
93 |
query = st.text_input("Enter Query",'What are the corona viruses?', key="query")
|
94 |
|
|
|
|
|
95 |
with st.spinner('Please wait...'):
|
96 |
dt1 = datetime.datetime.now()
|
97 |
|
|
|
77 |
|
78 |
device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu')
|
79 |
|
80 |
+
|
81 |
|
82 |
embeddings = load_prep_data()
|
83 |
|
|
|
92 |
|
93 |
query = st.text_input("Enter Query",'What are the corona viruses?', key="query")
|
94 |
|
95 |
+
st.write('Using device type: {}'.format(device))
|
96 |
+
|
97 |
with st.spinner('Please wait...'):
|
98 |
dt1 = datetime.datetime.now()
|
99 |
|