Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -345,8 +345,7 @@ def qa_prompt():
|
|
345 |
)
|
346 |
|
347 |
def on_change_documents_only():
|
348 |
-
st.session_state.toggle_docs =
|
349 |
-
{
|
350 |
'qa_prompt': qa_prompt(),
|
351 |
'tooltip': 'The AI answer your questions only considering the documents provided' if st.session_state.documents_only else """The AI answer your questions considering the documents provided, and if it doesn't found the answer in them, try to find in its own internal knowledge"""
|
352 |
}
|
|
|
345 |
)
|
346 |
|
347 |
def on_change_documents_only():
|
348 |
+
st.session_state.toggle_docs = {
|
|
|
349 |
'qa_prompt': qa_prompt(),
|
350 |
'tooltip': 'The AI answer your questions only considering the documents provided' if st.session_state.documents_only else """The AI answer your questions considering the documents provided, and if it doesn't found the answer in them, try to find in its own internal knowledge"""
|
351 |
}
|