Update app.py
Browse files
app.py
CHANGED
@@ -151,14 +151,12 @@ def create_stats_html():
|
|
151 |
else:
|
152 |
top_models = pd.DataFrame(columns=['model_id', 'model_type', 'downloads_30d', 'likes'])
|
153 |
|
154 |
-
|
155 |
-
# Format the summary statistics
|
156 |
summary_html = f"""
|
157 |
<div style='padding: 20px; background-color: #f5f5f5; border-radius: 10px; margin-bottom: 20px;'>
|
158 |
-
<h3>Summary Statistics</h3>
|
159 |
-
<p>Derivative Models Downloads: {format_number(total_downloads_deriv)} ({total_derivatives} models)</p>
|
160 |
-
<p>Original Models Downloads: {format_number(total_downloads_orig)} ({total_originals} models)</p>
|
161 |
-
<p>Last Updated: {datetime.now().strftime('%Y-%m-%d %H:%M UTC')}</p>
|
162 |
</div>
|
163 |
"""
|
164 |
|
|
|
151 |
else:
|
152 |
top_models = pd.DataFrame(columns=['model_id', 'model_type', 'downloads_30d', 'likes'])
|
153 |
|
|
|
|
|
154 |
summary_html = f"""
|
155 |
<div style='padding: 20px; background-color: #f5f5f5; border-radius: 10px; margin-bottom: 20px;'>
|
156 |
+
<h3 style='color: #333333;'>Summary Statistics</h3>
|
157 |
+
<p style='color: #333333;'>Derivative Models Downloads: {format_number(total_downloads_deriv)} ({total_derivatives} models)</p>
|
158 |
+
<p style='color: #333333;'>Original Models Downloads: {format_number(total_downloads_orig)} ({total_originals} models)</p>
|
159 |
+
<p style='color: #333333;'>Last Updated: {datetime.now().strftime('%Y-%m-%d %H:%M UTC')}</p>
|
160 |
</div>
|
161 |
"""
|
162 |
|