Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,14 +6,14 @@ from data_cleaning import preprocess
|
|
6 |
from transformers import pipeline
|
7 |
from data_integration import scrape_all_pages
|
8 |
|
9 |
-
|
10 |
-
def get_img_as_base64(file):
|
11 |
-
with open(file, "rb") as f:
|
12 |
-
data = f.read()
|
13 |
-
return base64.b64encode(data).decode()
|
14 |
|
15 |
|
16 |
-
img = get_img_as_base64("image.jpg")
|
17 |
|
18 |
page_bg_img = f"""
|
19 |
<style>
|
|
|
6 |
from transformers import pipeline
|
7 |
from data_integration import scrape_all_pages
|
8 |
|
9 |
+
#@st.cache_data
|
10 |
+
#def get_img_as_base64(file):
|
11 |
+
# with open(file, "rb") as f:
|
12 |
+
# data = f.read()
|
13 |
+
# return base64.b64encode(data).decode()
|
14 |
|
15 |
|
16 |
+
#img = get_img_as_base64("image.jpg")
|
17 |
|
18 |
page_bg_img = f"""
|
19 |
<style>
|