tahirsher commited on
Commit
15a9e3b
Β·
verified Β·
1 Parent(s): 5eacffe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -9,6 +9,9 @@ from langchain.vectorstores import FAISS
9
  from transformers import pipeline, AutoModel, AutoTokenizer
10
  import torch
11
 
 
 
 
12
  # Load the summarization pipeline model
13
  @st.cache_resource
14
  def load_summarization_pipeline():
@@ -79,7 +82,6 @@ def user_input(user_question, vector_store):
79
 
80
  # Main function to run the Streamlit app
81
  def main():
82
- st.set_page_config(page_title="RAG-based PDF Chat", layout="centered", page_icon="πŸ“„")
83
  st.title("πŸ“„ Gen AI Lawyers Guide")
84
 
85
  # Load documents from Hugging Face
 
9
  from transformers import pipeline, AutoModel, AutoTokenizer
10
  import torch
11
 
12
+ # Set up the page configuration as the first Streamlit command
13
+ st.set_page_config(page_title="RAG-based PDF Chat", layout="centered", page_icon="πŸ“„")
14
+
15
  # Load the summarization pipeline model
16
  @st.cache_resource
17
  def load_summarization_pipeline():
 
82
 
83
  # Main function to run the Streamlit app
84
  def main():
 
85
  st.title("πŸ“„ Gen AI Lawyers Guide")
86
 
87
  # Load documents from Hugging Face