Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,9 +119,9 @@ def injury_prevention_advisor(body_part: str, sport: str = None) -> str:
|
|
| 119 |
tips = injuries[body_part].get("prevention", [])
|
| 120 |
recovery = injuries[body_part].get("recovery", "")
|
| 121 |
if sport:
|
| 122 |
-
return f"For {sport}: {', '.join(tips)},
|
| 123 |
|
| 124 |
-
return f"Prevention tips: {', '.join(tips)},
|
| 125 |
|
| 126 |
return "No tips available for this area"
|
| 127 |
|
|
|
|
| 119 |
tips = injuries[body_part].get("prevention", [])
|
| 120 |
recovery = injuries[body_part].get("recovery", "")
|
| 121 |
if sport:
|
| 122 |
+
return f"For {sport}: {', '.join(tips)}, \nRecovery advice: {recovery}"
|
| 123 |
|
| 124 |
+
return f"Prevention tips: {', '.join(tips)}, \nRecovery advice: {recovery}"
|
| 125 |
|
| 126 |
return "No tips available for this area"
|
| 127 |
|