Sakil commited on
Commit
3c11da9
·
1 Parent(s): c0264f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -0
app.py CHANGED
@@ -9,6 +9,24 @@ from langchain.chains import ConversationalRetrievalChain
9
 
10
  DB_FAISS_PATH = 'vectorstore/db_faiss'
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  #Loading the model
13
  def load_llm():
14
  # Load the locally downloaded model here
@@ -17,6 +35,26 @@ def load_llm():
17
 
18
  st.title("Chat with CSV using Llama2 🦙🦜")
19
  st.markdown("<h3 style='text-align: center; color: white;'>Built by <a href=https://github.com/Sakil786'>Llama-2-7B-Chat ❤️ </a></h3>", unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  uploaded_file = st.sidebar.file_uploader("Upload your Data", type="csv")
22
 
 
9
 
10
  DB_FAISS_PATH = 'vectorstore/db_faiss'
11
 
12
+ # Set the background image and color
13
+ st.markdown(
14
+ """
15
+ <style>
16
+ body {
17
+ background-image: url('https://www.bing.com/images/search?view=detailV2&ccid=lFAWXtbv&id=BB57AC3541361FF3844CAA706B667014CB515B92&thid=OIP.lFAWXtbvpchf66BryfJQ1QHaE8&mediaurl=https%3a%2f%2fimage.freepik.com%2ffree-photo%2ftwo-llamas-andean-highland-bolivia_107467-2006.jpg&exph=418&expw=626&q=llama2+image&simid=608011097331751957&FORM=IRPRST&ck=F66D65F1AFAAA4BBCF9986ADF8ED1643&selectedIndex=4');
18
+ background-size: cover;
19
+ background-color: #1E90FF; /* Dodger Blue */
20
+ color: white;
21
+ }
22
+ .st-bw {
23
+ color: white;
24
+ }
25
+ </style>
26
+ """,
27
+ unsafe_allow_html=True
28
+ )
29
+
30
  #Loading the model
31
  def load_llm():
32
  # Load the locally downloaded model here
 
35
 
36
  st.title("Chat with CSV using Llama2 🦙🦜")
37
  st.markdown("<h3 style='text-align: center; color: white;'>Built by <a href=https://github.com/Sakil786'>Llama-2-7B-Chat ❤️ </a></h3>", unsafe_allow_html=True)
38
+ # Your background image URL goes here
39
+ background_image_url = 'https://www.bing.com/images/search?view=detailV2&ccid=lFAWXtbv&id=BB57AC3541361FF3844CAA706B667014CB515B92&thid=OIP.lFAWXtbvpchf66BryfJQ1QHaE8&mediaurl=https%3a%2f%2fimage.freepik.com%2ffree-photo%2ftwo-llamas-andean-highland-bolivia_107467-2006.jpg&exph=418&expw=626&q=llama2+image&simid=608011097331751957&FORM=IRPRST&ck=F66D65F1AFAAA4BBCF9986ADF8ED1643&selectedIndex=4'
40
+
41
+ # Set the background image and color
42
+ st.markdown(
43
+ """
44
+ <style>
45
+ body {
46
+ background-image: url('%s');
47
+ background-size: cover;
48
+ background-color: #1E90FF; /* Dodger Blue */
49
+ color: white;
50
+ }
51
+ .st-bw {
52
+ color: white;
53
+ }
54
+ </style>
55
+ """ % background_image_url,
56
+ unsafe_allow_html=True
57
+ )
58
 
59
  uploaded_file = st.sidebar.file_uploader("Upload your Data", type="csv")
60