drkareemkamal commited on
Commit
8909af4
1 Parent(s): 851d564

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -118,7 +118,8 @@ if st.button('Get Answer'):
118
  st.write(f"Page Number: {page+1}")
119
 
120
  # Display the PDF page as an image
121
- pdf_page_image = get_pdf_page_as_image(pdf_path, page)
 
122
  st.image(pdf_page_image, caption=f"Page {page+1} from {source}")
123
 
124
  else:
 
118
  st.write(f"Page Number: {page+1}")
119
 
120
  # Display the PDF page as an image
121
+ source = source.replace("\","/")
122
+ pdf_page_image = get_pdf_page_as_image(source, page)
123
  st.image(pdf_page_image, caption=f"Page {page+1} from {source}")
124
 
125
  else: