Ronoh4
commited on
Commit
·
efe5822
1
Parent(s):
6f6ecac
Updated the data file
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ parser = LlamaParse(
|
|
50 |
|
51 |
# Get the absolute path of the script's directory
|
52 |
script_dir = os.path.dirname(os.path.abspath(__file__))
|
53 |
-
data_file = os.path.join(script_dir, "
|
54 |
|
55 |
# Load the PDF document using the relative path
|
56 |
documents = parser.load_data(data_file)
|
@@ -168,7 +168,7 @@ def query_model_with_context(question):
|
|
168 |
|
169 |
# Streamlit UI
|
170 |
st.title("Chat with HyDE + Rerank RAG App")
|
171 |
-
question = st.text_input("Enter a relevant question to chat with the attached
|
172 |
|
173 |
if st.button("Submit"):
|
174 |
if question:
|
|
|
50 |
|
51 |
# Get the absolute path of the script's directory
|
52 |
script_dir = os.path.dirname(os.path.abspath(__file__))
|
53 |
+
data_file = os.path.join(script_dir, "FreightsDataset.pdf")
|
54 |
|
55 |
# Load the PDF document using the relative path
|
56 |
documents = parser.load_data(data_file)
|
|
|
168 |
|
169 |
# Streamlit UI
|
170 |
st.title("Chat with HyDE + Rerank RAG App")
|
171 |
+
question = st.text_input("Enter a relevant question to chat with the attached FreightsDataset PDF file:")
|
172 |
|
173 |
if st.button("Submit"):
|
174 |
if question:
|