stackConsult commited on
Commit
0b3754d
·
verified ·
1 Parent(s): dfa50bc

Fix indentation error on line 247 and separate concatenated statements on lines 247-249

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -244,10 +244,9 @@ with gr.Blocks(title="StrategyStack UI") as demo:
244
  def load_enrichment_data(profile: Optional[gr.OAuthProfile] = None):
245
  if profile is None:
246
  return "# 👤 Authentication Required\n\nPlease sign in with your Hugging Face account to access data enrichment features."
247
- username = profile.username
248
- manager = get_enrichment_manager(username)
249
  stats = manager.get_enrichment_stats()
250
-
251
  enrichment_md = f"# 📊 Data Enrichment Dashboard\n\n**User:** {username}\n\n"
252
  enrichment_md += "## Enrichment Statistics\n\n"
253
  enrichment_md += f"- **Total API Calls:** {stats.get('total_api_calls', 0)}\n"
 
244
  def load_enrichment_data(profile: Optional[gr.OAuthProfile] = None):
245
  if profile is None:
246
  return "# 👤 Authentication Required\n\nPlease sign in with your Hugging Face account to access data enrichment features."
247
+ username = profile.username
248
+ manager = get_enrichment_manager(username)
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"