SHAMIL SHAHBAZ AWAN commited on
Commit
8193c02
·
verified ·
1 Parent(s): 4aba82d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -140,6 +140,10 @@ def process_and_store_document(file_path):
140
  # User interface for Streamlit
141
  st.title("The Rise of Agentic AI RAG Application")
142
 
 
 
 
 
143
  # Query input for the user
144
  user_query = st.text_input("Enter your query:")
145
 
@@ -191,9 +195,5 @@ if user_query:
191
  except Exception as e:
192
  st.error(f"Error generating response: {e}")
193
 
194
- # Button to trigger document processing
195
- if st.button("Process PDF"):
196
- process_and_store_document(file_path)
197
-
198
  # Footer
199
  st.markdown("<div class='footer'>Created by Shamil Shahbaz</div>", unsafe_allow_html=True)
 
140
  # User interface for Streamlit
141
  st.title("The Rise of Agentic AI RAG Application")
142
 
143
+ # Button to trigger document processing
144
+ if st.button("Process PDF"):
145
+ process_and_store_document(file_path)
146
+
147
  # Query input for the user
148
  user_query = st.text_input("Enter your query:")
149
 
 
195
  except Exception as e:
196
  st.error(f"Error generating response: {e}")
197
 
 
 
 
 
198
  # Footer
199
  st.markdown("<div class='footer'>Created by Shamil Shahbaz</div>", unsafe_allow_html=True)