Ashkchamp commited on
Commit
4dabe05
·
verified ·
1 Parent(s): e6caa06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,13 +16,13 @@ from finance_agent import FinanceAgent
16
  from pathlib import Path
17
  # UI enhancement
18
  def add_bg_from_local(image_path):
19
- with open(image_path, "rb") as image_file:
20
- encoded_string = base64.b64encode(image_file.read()).decode()
 
21
 
22
  return f"""
23
  <style>
24
  .stApp {{
25
- # background-image: url("data:image/png;base64,{encoded_string}");
26
  background-image: url("https://huggingface.co/spaces/Ashkchamp/financeagent/blob/main/23115991-fffc-4f67-a116-581a1a9046c8.png");
27
  background-size: cover;
28
  background-position: center;
 
16
  from pathlib import Path
17
  # UI enhancement
18
  def add_bg_from_local(image_path):
19
+ # with open(image_path, "rb") as image_file:
20
+ # encoded_string = base64.b64encode(image_file.read()).decode()
21
+ #background-image: url("data:image/png;base64,{encoded_string}");
22
 
23
  return f"""
24
  <style>
25
  .stApp {{
 
26
  background-image: url("https://huggingface.co/spaces/Ashkchamp/financeagent/blob/main/23115991-fffc-4f67-a116-581a1a9046c8.png");
27
  background-size: cover;
28
  background-position: center;