some changes has been done
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def handle_userinput(user_question):
|
|
72 |
|
73 |
def main():
|
74 |
|
75 |
-
st.set_page_config(page_title='
|
76 |
with st.sidebar.title(':gear: Parameters'):
|
77 |
model_n_ctx = st.sidebar.slider('Model N_CTX', min_value=128, max_value=2048, value=1024, step=2)
|
78 |
model_n_batch = st.sidebar.slider('Model N_BATCH', min_value=1, max_value=model_n_ctx, value=512, step=2)
|
@@ -87,10 +87,9 @@ def main():
|
|
87 |
st.header('Chat with PDF :robot_face:')
|
88 |
st.subheader('Upload your PDF file and start chatting with it!')
|
89 |
user_question = st.text_input('Enter your message here:')
|
90 |
-
|
91 |
if st.button('Start Chain'):
|
92 |
with st.spinner('Working in progress ...'):
|
93 |
-
pdf_file = st.file_uploader("Upload PDF", type=['pdf'])
|
94 |
if pdf_file is not None:
|
95 |
pdf_text = get_pdf_text(pdf_file)
|
96 |
pdf_text_chunks = get_pdf_text_chunks(pdf_text)
|
|
|
72 |
|
73 |
def main():
|
74 |
|
75 |
+
st.set_page_config(page_title='Java Copilot :Coffe:', page_icon=':rocket:', layout='wide', )
|
76 |
with st.sidebar.title(':gear: Parameters'):
|
77 |
model_n_ctx = st.sidebar.slider('Model N_CTX', min_value=128, max_value=2048, value=1024, step=2)
|
78 |
model_n_batch = st.sidebar.slider('Model N_BATCH', min_value=1, max_value=model_n_ctx, value=512, step=2)
|
|
|
87 |
st.header('Chat with PDF :robot_face:')
|
88 |
st.subheader('Upload your PDF file and start chatting with it!')
|
89 |
user_question = st.text_input('Enter your message here:')
|
90 |
+
pdf_file = st.file_uploader("Upload PDF", type=['pdf'])
|
91 |
if st.button('Start Chain'):
|
92 |
with st.spinner('Working in progress ...'):
|
|
|
93 |
if pdf_file is not None:
|
94 |
pdf_text = get_pdf_text(pdf_file)
|
95 |
pdf_text_chunks = get_pdf_text_chunks(pdf_text)
|