Spaces:
Sleeping
Sleeping
SHAMIL SHAHBAZ AWAN
commited on
Update app.py
Browse files
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)
|