Spaces:
Sleeping
Sleeping
Logeswaransr
commited on
Commit
•
f6dc3fa
1
Parent(s):
11b7b6b
Update app.py
Browse files
app.py
CHANGED
@@ -13,11 +13,13 @@ st.set_page_config(page_title='AI Chaperone - RAG', layout='wide')
|
|
13 |
if 'messages' not in st.session_state:
|
14 |
st.session_state.messages=[]
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
21 |
st.subheader("AI Chaperone")
|
22 |
|
23 |
for message in st.session_state.messages:
|
|
|
13 |
if 'messages' not in st.session_state:
|
14 |
st.session_state.messages=[]
|
15 |
|
16 |
+
flag=True
|
17 |
+
while flag:
|
18 |
+
try:
|
19 |
+
pipeline = init_pipeline()
|
20 |
+
flag=False
|
21 |
+
except:
|
22 |
+
install('transformers')
|
23 |
st.subheader("AI Chaperone")
|
24 |
|
25 |
for message in st.session_state.messages:
|