fschwartzer commited on
Commit
c86d904
1 Parent(s): 75ef971

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -43
app.py CHANGED
@@ -111,57 +111,17 @@ filtered_data = data # Initialize with the entire dataset
111
  # Calculate a zoom level based on the maximum distance
112
  zoom_level = 13
113
 
114
- # Set font to 'Quicksand' for title_html
 
115
  title_html = """
116
- <style>
117
- @font-face {font-family: 'Quicksand';
118
- src: url('font/Quicksand-VariableFont_wght.ttf') format('truetype');
119
- }
120
- body {{
121
- font-family: 'Quicksand', sans-serif;
122
- }}
123
- </style>
124
  <span style='color: #566f71; font-size: 50px;'>aval</span>
125
  <span style='color: #edb600; font-size: 50px;'>ia</span>
126
  <span style='color: #566f71; font-size: 50px;'>.se</span>
127
  """
128
 
129
- # Set font to 'Quicksand' for factor_html
130
- factor_html = """
131
- <style>
132
- @font-face {font-family: 'Quicksand';
133
- src: url('font/Quicksand-VariableFont_wght.ttf') format('truetype');
134
- }
135
- body {{
136
- font-family: 'Quicksand', sans-serif;
137
- }}
138
- </style>
139
- <a href='https://huggingface.co/spaces/DavidSB/avaliaFACTOR' target='_blank' style='text-decoration: none; color: inherit;'>
140
- <span style='color: #566f71; font-size: 20px;'>aval</span>
141
- <span style='color: #edb600; font-size: 20px;'>ia</span>
142
- <span style='color: #566f71; font-size: 20px;'>.FACTOR</span>
143
- """
144
-
145
- # Set font to 'Quicksand' for evo_html
146
- evo_html = """
147
- <style>
148
- @font-face {font-family: 'Quicksand';
149
- src: url('font/Quicksand-VariableFont_wght.ttf') format('truetype');
150
- }
151
- body {{
152
- font-family: 'Quicksand', sans-serif;
153
- }}
154
- </style>
155
- <a href='https://huggingface.co/spaces/DavidSB/avalia.EVO' target='_blank' style='text-decoration: none; color: inherit;'>
156
- <span style='color: #566f71; font-size: 20px;'>aval</span>
157
- <span style='color: #edb600; font-size: 20px;'>ia</span>
158
- <span style='color: #566f71; font-size: 20px;'>.EVO</span>
159
- """
160
-
161
-
162
  # Create a sidebar for controls
163
  with st.sidebar:
164
- st.markdown(title_html, unsafe_allow_html=True)
165
 
166
  # Add a dropdown for filtering "Fonte"
167
  selected_fonte = st.selectbox('Finalidade', data['Fonte'].unique(), index=data['Fonte'].unique().tolist().index('Venda'))
 
111
  # Calculate a zoom level based on the maximum distance
112
  zoom_level = 13
113
 
114
+ font_url = "https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap"
115
+
116
  title_html = """
 
 
 
 
 
 
 
 
117
  <span style='color: #566f71; font-size: 50px;'>aval</span>
118
  <span style='color: #edb600; font-size: 50px;'>ia</span>
119
  <span style='color: #566f71; font-size: 50px;'>.se</span>
120
  """
121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  # Create a sidebar for controls
123
  with st.sidebar:
124
+ st.markdown(title_html, f"<style>@import url('{font_url}'); h1 {{font-family: 'Quicksand', sans-serif;}}</style>", unsafe_allow_html=True)
125
 
126
  # Add a dropdown for filtering "Fonte"
127
  selected_fonte = st.selectbox('Finalidade', data['Fonte'].unique(), index=data['Fonte'].unique().tolist().index('Venda'))