Spaces:
Running
Running
port adaptation
Browse files
README.md
CHANGED
|
@@ -7,4 +7,14 @@ sdk: docker
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# Skin Analysis API
|
| 11 |
+
|
| 12 |
+
This is a skin analysis API that detects skin problems and provides personalized recommendations.
|
| 13 |
+
|
| 14 |
+
## API Endpoint
|
| 15 |
+
`/predict` - POST endpoint that accepts image uploads
|
| 16 |
+
|
| 17 |
+
## Parameters
|
| 18 |
+
- `lang` (optional): 'en' or 'fr' for language preference
|
| 19 |
+
|
| 20 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -449,6 +449,5 @@ def health():
|
|
| 449 |
})
|
| 450 |
|
| 451 |
if __name__ == '__main__':
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
app.run(debug=False, host='0.0.0.0', port=port)
|
|
|
|
| 449 |
})
|
| 450 |
|
| 451 |
if __name__ == '__main__':
|
| 452 |
+
Port = os.environ.get("Port")
|
| 453 |
+
app.run(debug=False, host='0.0.0.0', port=Port)
|
|
|