Update tittle
Browse files
app.py
CHANGED
@@ -76,18 +76,18 @@ def main():
|
|
76 |
if "ggml-gpt4all-j-v1.3-groovy.bin" not in os.listdir("/tmp"):
|
77 |
hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin",
|
78 |
filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/tmp")
|
79 |
-
st.set_page_config(page_title="
|
80 |
if "conversation" not in st.session_state:
|
81 |
st.session_state.conversation = None
|
82 |
if "chat_history" not in st.session_state:
|
83 |
st.session_state.chat_history = None
|
84 |
|
85 |
-
st.header("Query your
|
86 |
user_question = st.text_input("Ask a question about your documents...")
|
87 |
if user_question and st.session_state.conversation:
|
88 |
user_input(user_question)
|
89 |
with st.sidebar:
|
90 |
-
st.subheader("Your
|
91 |
pdfs = st.file_uploader(
|
92 |
"Upload here", accept_multiple_files=True, type=["pdf"],)
|
93 |
if st.button("Study"):
|
|
|
76 |
if "ggml-gpt4all-j-v1.3-groovy.bin" not in os.listdir("/tmp"):
|
77 |
hf_hub_download(repo_id="dnato/ggml-gpt4all-j-v1.3-groovy.bin",
|
78 |
filename="ggml-gpt4all-j-v1.3-groovy.bin", local_dir="/tmp")
|
79 |
+
st.set_page_config(page_title="Document Chatbot")
|
80 |
if "conversation" not in st.session_state:
|
81 |
st.session_state.conversation = None
|
82 |
if "chat_history" not in st.session_state:
|
83 |
st.session_state.chat_history = None
|
84 |
|
85 |
+
st.header("Query your CO2 documents")
|
86 |
user_question = st.text_input("Ask a question about your documents...")
|
87 |
if user_question and st.session_state.conversation:
|
88 |
user_input(user_question)
|
89 |
with st.sidebar:
|
90 |
+
st.subheader("Your CO2 documents")
|
91 |
pdfs = st.file_uploader(
|
92 |
"Upload here", accept_multiple_files=True, type=["pdf"],)
|
93 |
if st.button("Study"):
|