shachar commited on
Commit
a334a38
1 Parent(s): 66b9247

slight layout modifications to fit hf spaces

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -7,7 +7,7 @@ import chess.svg
7
  import streamlit as st
8
  from datasets import load_dataset
9
 
10
- st.set_page_config(page_title="Practice Chess Openings", page_icon="♖")
11
 
12
  # Load external CSS
13
  with open("style.css") as f:
@@ -62,10 +62,10 @@ def update_score():
62
 
63
 
64
  # App layout
65
- st.markdown(
66
- "<h1 style='text-align: center; font-size: 32px; margin-bottom: 10px; margin-top: -25px; padding-top: 0; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);'>Practice Chess Openings</h1>",
67
- unsafe_allow_html=True,
68
- )
69
 
70
  with st.sidebar:
71
  st.header("Settings")
@@ -356,7 +356,7 @@ with st.sidebar:
356
  help="1 point per correct move",
357
  )
358
 
359
- col1, col2 = st.columns([3, 1])
360
  with col1:
361
  st.subheader("Completed Openings")
362
  with col2:
 
7
  import streamlit as st
8
  from datasets import load_dataset
9
 
10
+ st.set_page_config(page_title="Chess Openings", page_icon="♖")
11
 
12
  # Load external CSS
13
  with open("style.css") as f:
 
62
 
63
 
64
  # App layout
65
+ # st.markdown(
66
+ # "<h1 style='text-align: center; font-size: 32px; margin-bottom: 10px; margin-top: -25px; padding-top: 0; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);'>Practice Chess Openings</h1>",
67
+ # unsafe_allow_html=True,
68
+ # )
69
 
70
  with st.sidebar:
71
  st.header("Settings")
 
356
  help="1 point per correct move",
357
  )
358
 
359
+ col1, col2 = st.columns([2, 1])
360
  with col1:
361
  st.subheader("Completed Openings")
362
  with col2: