Linhz commited on
Commit
0965d00
·
verified ·
1 Parent(s): 8f16701

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -8,7 +8,7 @@ from transformers import pipeline
8
 
9
 
10
 
11
- st.title("Vietnamese Legal Question Answering System")
12
 
13
  with open('articles.pkl', 'rb') as file:
14
  articles = pickle.load(file)
@@ -16,7 +16,6 @@ with open('articles.pkl', 'rb') as file:
16
  index_loaded = faiss.read_index("sentence_embeddings_index_no_citation.faiss")
17
 
18
  if 'model_embedding' not in st.session_state:
19
- print("ERROR")
20
  st.session_state.model_embedding = SentenceTransformer('bkai-foundation-models/vietnamese-bi-encoder')
21
 
22
 
 
8
 
9
 
10
 
11
+ st.set_page_config(page_title = "Vietnamese Legal Question Answering System", page_icon= "🐧", layout="centered", initial_sidebar_state="collapsed")
12
 
13
  with open('articles.pkl', 'rb') as file:
14
  articles = pickle.load(file)
 
16
  index_loaded = faiss.read_index("sentence_embeddings_index_no_citation.faiss")
17
 
18
  if 'model_embedding' not in st.session_state:
 
19
  st.session_state.model_embedding = SentenceTransformer('bkai-foundation-models/vietnamese-bi-encoder')
20
 
21