Spaces:
Sleeping
Sleeping
Fix lines 252-257 indentation - reduce from excessive spaces to 4 spaces
Browse files
app.py
CHANGED
|
@@ -249,12 +249,12 @@ def load_enrichment_data(profile: Optional[gr.OAuthProfile] = None):
|
|
| 249 |
stats = manager.get_enrichment_stats()
|
| 250 |
enrichment_md = f"# 📊 Data Enrichment Dashboard\n\n**User:** {username}\n\n"
|
| 251 |
enrichment_md += "## Enrichment Statistics\n\n"
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
|
| 259 |
# Calculate success rate
|
| 260 |
if stats.get('total_enrichments', 0) > 0:
|
|
|
|
| 249 |
stats = manager.get_enrichment_stats()
|
| 250 |
enrichment_md = f"# 📊 Data Enrichment Dashboard\n\n**User:** {username}\n\n"
|
| 251 |
enrichment_md += "## Enrichment Statistics\n\n"
|
| 252 |
+
enrichment_md += f"- **Total API Calls:** {stats.get('total_api_calls', 0)}\n"
|
| 253 |
+
enrichment_md += f"- **Cache Hits:** {stats.get('cache_hits', 0)}\n"
|
| 254 |
+
enrichment_md += f"- **Cache Misses:** {stats.get('cache_misses', 0)}\n"
|
| 255 |
+
enrichment_md += f"- **Total Enrichments:** {stats.get('total_enrichments', 0)}\n"
|
| 256 |
+
enrichment_md += f"- **Successful Enrichments:** {stats.get('successful_enrichments', 0)}\n"
|
| 257 |
+
enrichment_md += f"- **Failed Enrichments:** {stats.get('failed_enrichments', 0)}\n\n"
|
| 258 |
|
| 259 |
# Calculate success rate
|
| 260 |
if stats.get('total_enrichments', 0) > 0:
|