Update app.py
Browse filesRefer temp.pdf
app.py
CHANGED
@@ -72,8 +72,9 @@ def generate_response(rag_chain, input_text):
|
|
72 |
|
73 |
### Ken 12/11/2024 ADD START
|
74 |
def get_pdf(uploaded_file):
|
|
|
75 |
if uploaded_file :
|
76 |
-
temp_file = "./temp.pdf"
|
77 |
# Delete the existing temp.pdf file if it exists
|
78 |
if os.path.exists(temp_file):
|
79 |
os.remove(temp_file)
|
|
|
72 |
|
73 |
### Ken 12/11/2024 ADD START
|
74 |
def get_pdf(uploaded_file):
|
75 |
+
temp_file = "./temp.pdf"
|
76 |
if uploaded_file :
|
77 |
+
#temp_file = "./temp.pdf"
|
78 |
# Delete the existing temp.pdf file if it exists
|
79 |
if os.path.exists(temp_file):
|
80 |
os.remove(temp_file)
|