somoncef commited on
Commit
01c810c
·
1 Parent(s): ce82e75

port adaptation

Browse files
Files changed (2) hide show
  1. README.md +10 -0
  2. app.py +2 -3
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
- port = int(os.environ.get("PORT", 8000))
453
- print(f"Starting server on port {port}")
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)