Spaces:
Sleeping
Sleeping
Fix syntax error on line 244 - separate concatenated statements onto different lines
Browse files
app.py
CHANGED
|
@@ -241,9 +241,9 @@ with gr.Blocks(title="StrategyStack UI") as demo:
|
|
| 241 |
def load_audit_data(profile: Optional[gr.OAuthProfile] = None):
|
| 242 |
return audit_trail_widget(profile)
|
| 243 |
|
| 244 |
-
def load_enrichment_data(profile: Optional[gr.OAuthProfile] = None):
|
| 245 |
-
|
| 246 |
-
|
| 247 |
username = profile.username
|
| 248 |
manager = get_enrichment_manager(username)
|
| 249 |
stats = manager.get_enrichment_stats()
|
|
|
|
| 241 |
def load_audit_data(profile: Optional[gr.OAuthProfile] = None):
|
| 242 |
return audit_trail_widget(profile)
|
| 243 |
|
| 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()
|