Sakil commited on
Commit
01311c2
·
1 Parent(s): bb13547

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -8,13 +8,13 @@ from langchain.llms import CTransformers
8
  from langchain.chains import ConversationalRetrievalChain
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;
@@ -33,17 +33,17 @@ def load_llm():
33
  llm = CTransformers(model='TheBloke/Llama-2-7B-Chat-GGML',model_file='llama-2-7b-chat.ggmlv3.q8_0.bin',max_new_tokens=512,temperature=0.1,gpu_layers=50)
34
  return llm
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;
 
8
  from langchain.chains import ConversationalRetrievalChain
9
 
10
  DB_FAISS_PATH = 'vectorstore/db_faiss'
11
+ background_image_path = 'image1.jpg'
12
  # Set the background image and color
13
  st.markdown(
14
  """
15
  <style>
16
  body {
17
+ background-image: url('file://%s');
18
  background-size: cover;
19
  background-color: #1E90FF; /* Dodger Blue */
20
  color: white;
 
33
  llm = CTransformers(model='TheBloke/Llama-2-7B-Chat-GGML',model_file='llama-2-7b-chat.ggmlv3.q8_0.bin',max_new_tokens=512,temperature=0.1,gpu_layers=50)
34
  return llm
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'>CSVQConnect ❤️ </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
+ background_image_path = 'image2.jpg'
41
  # Set the background image and color
42
  st.markdown(
43
  """
44
  <style>
45
  body {
46
+ background-image: url('file://%s');
47
  background-size: cover;
48
  background-color: #1E90FF; /* Dodger Blue */
49
  color: white;