Spaces:
Sleeping
Sleeping
Add description
Browse files
app.py
CHANGED
@@ -32,6 +32,16 @@ from langchain.memory import ConversationBufferMemory
|
|
32 |
from langchain.chains import ConversationalRetrievalChain
|
33 |
from langchain.memory.chat_message_histories.streamlit import StreamlitChatMessageHistory
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
class UploadDoc:
|
36 |
def __init__(self, path_data):
|
37 |
self.path_data = path_data
|
|
|
32 |
from langchain.chains import ConversationalRetrievalChain
|
33 |
from langchain.memory.chat_message_histories.streamlit import StreamlitChatMessageHistory
|
34 |
|
35 |
+
# sidebar contents
|
36 |
+
with st.sidebar:
|
37 |
+
st.title('DOC-QA DEMO ')
|
38 |
+
st.markdown('''
|
39 |
+
## About
|
40 |
+
Detail this application:
|
41 |
+
- LLM model: llama2-7b-chat-4bit
|
42 |
+
- Hardware resource : Huggingface space 2 vCPU 16 GB Free
|
43 |
+
''')
|
44 |
+
|
45 |
class UploadDoc:
|
46 |
def __init__(self, path_data):
|
47 |
self.path_data = path_data
|