Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,17 @@ from prophet import Prophet
|
|
5 |
import datetime
|
6 |
import sentencepiece as spm
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
<style>
|
|
|
10 |
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@700&display=swap');
|
11 |
</style>
|
12 |
<div style='display: flex; flex-direction: column; align-items: flex-start;'>
|
@@ -21,7 +30,11 @@ st.markdown("""
|
|
21 |
<strong>PRO</strong>phet & <strong>TA</strong>pex E<strong>X</strong>plorer</span>
|
22 |
</div>
|
23 |
</div>
|
24 |
-
"""
|
|
|
|
|
|
|
|
|
25 |
|
26 |
# File upload interface
|
27 |
uploaded_file = st.file_uploader("Carregue um arquivo CSV ou XLSX", type=['csv', 'xlsx'])
|
|
|
5 |
import datetime
|
6 |
import sentencepiece as spm
|
7 |
|
8 |
+
# Caminho para o arquivo CSS, ajuste conforme a estrutura do seu projeto
|
9 |
+
css_file = "style.css"
|
10 |
+
|
11 |
+
# Abrindo e lendo o arquivo CSS
|
12 |
+
with open(css_file, "r") as css:
|
13 |
+
css_style = css.read()
|
14 |
+
|
15 |
+
# Markdown combinado com a importação da fonte e o HTML
|
16 |
+
html_content = f"""
|
17 |
<style>
|
18 |
+
{css_style}
|
19 |
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@700&display=swap');
|
20 |
</style>
|
21 |
<div style='display: flex; flex-direction: column; align-items: flex-start;'>
|
|
|
30 |
<strong>PRO</strong>phet & <strong>TA</strong>pex E<strong>X</strong>plorer</span>
|
31 |
</div>
|
32 |
</div>
|
33 |
+
"""
|
34 |
+
|
35 |
+
# Aplicar o markdown combinado no Streamlit
|
36 |
+
st.markdown(html_content, unsafe_allow_html=True)
|
37 |
+
|
38 |
|
39 |
# File upload interface
|
40 |
uploaded_file = st.file_uploader("Carregue um arquivo CSV ou XLSX", type=['csv', 'xlsx'])
|