Update streamlit_app.py
Browse files- streamlit_app.py +30 -13
streamlit_app.py
CHANGED
|
@@ -2,11 +2,12 @@
|
|
| 2 |
import streamlit as st
|
| 3 |
import os
|
| 4 |
import sys
|
|
|
|
| 5 |
from pathlib import Path
|
| 6 |
|
| 7 |
st.set_page_config(
|
| 8 |
-
page_title="F1
|
| 9 |
-
page_icon="
|
| 10 |
initial_sidebar_state="expanded",
|
| 11 |
layout="wide"
|
| 12 |
)
|
|
@@ -104,6 +105,33 @@ with st.sidebar:
|
|
| 104 |
st.markdown("<p style='text-align: left; color: gray; font-size: 12px;'>Any feedback is welcome.</p>", unsafe_allow_html=True)
|
| 105 |
st.markdown("", unsafe_allow_html=True)
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
st.markdown("<h3 style='text-align: center; color: #fff;'>Contact</h3>", unsafe_allow_html=True)
|
| 108 |
# Nueva versión más compacta de los iconos
|
| 109 |
contact_html = """
|
|
@@ -122,17 +150,6 @@ with st.sidebar:
|
|
| 122 |
st.write("")
|
| 123 |
st.write("")
|
| 124 |
st.markdown("<p style='text-align: center; color: gray; font-size: 10px;'>For research/educational purposes only</p>", unsafe_allow_html=True)
|
| 125 |
-
|
| 126 |
-
st.write("")
|
| 127 |
-
st.write("")
|
| 128 |
-
st.write("")
|
| 129 |
-
|
| 130 |
-
st.markdown("<h3 style='text-align: center; color: #fff;'>Get Desktop App</h3>", unsafe_allow_html=True)
|
| 131 |
-
col1,col2, col3 = st.columns([1,6,1])
|
| 132 |
-
with col2:
|
| 133 |
-
|
| 134 |
-
st.markdown("<p style='text-align: center; color: gray; font-size: 10px;'>Click Assets then download .exe</p>", unsafe_allow_html=True)
|
| 135 |
-
st.link_button("Download", "https://github.com/danielsaed/F1-steering-angle-model/releases",type="secondary",use_container_width=True)
|
| 136 |
|
| 137 |
|
| 138 |
pages = st.navigation({
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
import os
|
| 4 |
import sys
|
| 5 |
+
|
| 6 |
from pathlib import Path
|
| 7 |
|
| 8 |
st.set_page_config(
|
| 9 |
+
page_title="F1 Steering Angle Model",
|
| 10 |
+
page_icon="https://img.icons8.com/external-soft-fill-juicy-fish/60/external-formula-vehicle-mechanics-soft-fill-soft-fill-juicy-fish.png",
|
| 11 |
initial_sidebar_state="expanded",
|
| 12 |
layout="wide"
|
| 13 |
)
|
|
|
|
| 105 |
st.markdown("<p style='text-align: left; color: gray; font-size: 12px;'>Any feedback is welcome.</p>", unsafe_allow_html=True)
|
| 106 |
st.markdown("", unsafe_allow_html=True)
|
| 107 |
|
| 108 |
+
st.markdown("<h3 style='text-align: center; color: #fff;'>Available links</h3>", unsafe_allow_html=True)
|
| 109 |
+
# Nueva versión más compacta de los iconos
|
| 110 |
+
a_html = """
|
| 111 |
+
<div class="contact-icons">
|
| 112 |
+
<a href='https://daniel-saed-f1-steering-angle-model.hf.space' target="_blank" class="contact-icon" title="hugginface">
|
| 113 |
+
<img src="https://registry.npmmirror.com/@lobehub/icons-static-png/latest/files/dark/huggingface-color.png" alt="hugginface">
|
| 114 |
+
</a>
|
| 115 |
+
<a href="https://f1-steering-angle-model.streamlit.app/" target="_blank" class="contact-icon" title="Streamlit">
|
| 116 |
+
<img src="https://seeklogo.com/images/S/streamlit-logo-1A3B208AE4-seeklogo.com.png" alt="Streamlit">
|
| 117 |
+
</a>
|
| 118 |
+
</div>
|
| 119 |
+
|
| 120 |
+
"""
|
| 121 |
+
st.markdown(a_html, unsafe_allow_html=True)
|
| 122 |
+
|
| 123 |
+
st.write("")
|
| 124 |
+
st.write("")
|
| 125 |
+
|
| 126 |
+
st.markdown("<h3 style='text-align: center; color: #fff;'>Get Desktop App</h3>", unsafe_allow_html=True)
|
| 127 |
+
col1,col2, col3 = st.columns([1,6,1])
|
| 128 |
+
with col2:
|
| 129 |
+
|
| 130 |
+
st.markdown("<p style='text-align: center; color: gray; font-size: 10px;'>Click Assets then download .exe</p>", unsafe_allow_html=True)
|
| 131 |
+
st.link_button("Download", "https://github.com/danielsaed/F1-steering-angle-model/releases",type="secondary",use_container_width=True)
|
| 132 |
+
|
| 133 |
+
st.markdown("", unsafe_allow_html=True)
|
| 134 |
+
|
| 135 |
st.markdown("<h3 style='text-align: center; color: #fff;'>Contact</h3>", unsafe_allow_html=True)
|
| 136 |
# Nueva versión más compacta de los iconos
|
| 137 |
contact_html = """
|
|
|
|
| 150 |
st.write("")
|
| 151 |
st.write("")
|
| 152 |
st.markdown("<p style='text-align: center; color: gray; font-size: 10px;'>For research/educational purposes only</p>", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
|
| 155 |
pages = st.navigation({
|