pankajsingh3012 commited on
Commit
e86b717
Β·
verified Β·
1 Parent(s): 28f85eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -23
app.py CHANGED
@@ -85,29 +85,29 @@ def user_input(user_question):
85
 
86
 
87
  #steamlit interface
88
- def main():
89
- titleimg = "wp2856135.gif"
90
-
91
- # impliment background formating
92
- def set_bg_hack(main_bg):
93
- # set bg name
94
- main_bg_ext = "gif"
95
- st.markdown(
96
- f"""
97
- <style>
98
- .stApp {{
99
- background: url(data:image/{main_bg_ext};base64,{base64.b64encode(open(main_bg, "rb").read()).decode()});
100
- background-repeat: no-repeat;
101
- background-position: right 50% bottom 95% ;
102
- background-size: cover;
103
- background-attachment: scroll;
104
- }}
105
- </style>
106
- """,
107
- unsafe_allow_html=True,
108
- )
109
-
110
- set_bg_hack(titleimg)
111
 
112
  #st.set_page_config("Chat PDF")
113
  st.header("Chat with PDF πŸ’")
 
85
 
86
 
87
  #steamlit interface
88
+ # def main():
89
+ # titleimg = "wp2856135.gif"
90
+
91
+ # # impliment background formating
92
+ # def set_bg_hack(main_bg):
93
+ # # set bg name
94
+ # main_bg_ext = "gif"
95
+ # st.markdown(
96
+ # f"""
97
+ # <style>
98
+ # .stApp {{
99
+ # background: url(data:image/{main_bg_ext};base64,{base64.b64encode(open(main_bg, "rb").read()).decode()});
100
+ # background-repeat: no-repeat;
101
+ # background-position: right 50% bottom 95% ;
102
+ # background-size: cover;
103
+ # background-attachment: scroll;
104
+ # }}
105
+ # </style>
106
+ # """,
107
+ # unsafe_allow_html=True,
108
+ # )
109
+
110
+ # set_bg_hack(titleimg)
111
 
112
  #st.set_page_config("Chat PDF")
113
  st.header("Chat with PDF πŸ’")