Syahirfan commited on
Commit
734b34e
·
verified ·
1 Parent(s): 556a0b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -24,7 +24,7 @@ Helpful answer: (always use english language)
24
 
25
  DATA_PATH = 'content/'
26
  st.set_page_config(page_title="Chatbot Hadis", page_icon="🦙", layout="centered", initial_sidebar_state="auto", menu_items=None)
27
- st.title("Hadith Question Answering App💬")
28
 
29
  if "messages" not in st.session_state.keys(): # Initialize the chat messages history
30
  st.session_state.messages = [
@@ -41,7 +41,6 @@ if st.button("Process"):
41
  loader_cls=PyPDFLoader)
42
 
43
  documents = loader.load()
44
- print(documents)
45
  embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
46
  text_splitter = SemanticChunker(
47
  embeddings, breakpoint_threshold_type="percentile"
 
24
 
25
  DATA_PATH = 'content/'
26
  st.set_page_config(page_title="Chatbot Hadis", page_icon="🦙", layout="centered", initial_sidebar_state="auto", menu_items=None)
27
+ st.title("RAG Gemini Using semantic chunking💬")
28
 
29
  if "messages" not in st.session_state.keys(): # Initialize the chat messages history
30
  st.session_state.messages = [
 
41
  loader_cls=PyPDFLoader)
42
 
43
  documents = loader.load()
 
44
  embeddings = GoogleGenerativeAIEmbeddings(model="models/embedding-001")
45
  text_splitter = SemanticChunker(
46
  embeddings, breakpoint_threshold_type="percentile"