Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -8,6 +8,13 @@ import base64
|
|
8 |
def add_bg_from_local(image_file):
|
9 |
with open(image_file, "rb") as image_file:
|
10 |
encoded_string = base64.b64encode(image_file.read())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
st.markdown(
|
12 |
f"""
|
13 |
<style>
|
@@ -26,12 +33,7 @@ def add_bg_from_local(image_file):
|
|
26 |
""",
|
27 |
unsafe_allow_html=True
|
28 |
)
|
29 |
-
|
30 |
-
|
31 |
-
if 'model' not in st.session_state:
|
32 |
-
st.session_state.model = 'Model 1'
|
33 |
-
def update_radio2():
|
34 |
-
st.session_state.model=st.session_state.radio2
|
35 |
if 'genre' not in st.session_state:
|
36 |
st.session_state.genre=3
|
37 |
def update_num_genre():
|
|
|
8 |
def add_bg_from_local(image_file):
|
9 |
with open(image_file, "rb") as image_file:
|
10 |
encoded_string = base64.b64encode(image_file.read())
|
11 |
+
|
12 |
+
add_bg_from_local('background.jpg')
|
13 |
+
|
14 |
+
if 'model' not in st.session_state:
|
15 |
+
st.session_state.model = 'Model 1'
|
16 |
+
def update_radio2():
|
17 |
+
st.session_state.model=st.session_state.radio2
|
18 |
st.markdown(
|
19 |
f"""
|
20 |
<style>
|
|
|
33 |
""",
|
34 |
unsafe_allow_html=True
|
35 |
)
|
36 |
+
|
|
|
|
|
|
|
|
|
|
|
37 |
if 'genre' not in st.session_state:
|
38 |
st.session_state.genre=3
|
39 |
def update_num_genre():
|