Ralqasimi commited on
Commit
2e215e3
Β·
verified Β·
1 Parent(s): 09ef46f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -2,6 +2,11 @@ import streamlit as st
2
  from pdf_extractor import get_pdf_text
3
  from knowledge_base import create_faiss_index, search_faiss
4
  from chatbot import generate_response
 
 
 
 
 
5
 
6
  st.title("πŸ€– Arabic PDF Chatbot")
7
 
 
2
  from pdf_extractor import get_pdf_text
3
  from knowledge_base import create_faiss_index, search_faiss
4
  from chatbot import generate_response
5
+ try:
6
+ import fitz # PyMuPDF
7
+ print("βœ… PyMuPDF (fitz) is installed successfully!")
8
+ except ImportError as e:
9
+ print(f"❌ ImportError: {e}")
10
 
11
  st.title("πŸ€– Arabic PDF Chatbot")
12