Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|