Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import mylib
|
|
| 8 |
logger = logging.getLogger(__name__)
|
| 9 |
|
| 10 |
|
| 11 |
-
logging.basicConfig(filename='myapp.log', level=logging.INFO)
|
| 12 |
|
| 13 |
|
| 14 |
# 1) URL du Space HF qui héberge MLflow (tracking server)
|
|
@@ -93,6 +93,7 @@ def greet_json():
|
|
| 93 |
"""
|
| 94 |
Bonjour
|
| 95 |
"""
|
|
|
|
| 96 |
return {"Hello": "World!", "version": config.__version__}
|
| 97 |
|
| 98 |
|
|
@@ -101,6 +102,7 @@ def health():
|
|
| 101 |
"""
|
| 102 |
Health line to monitor the server status of the API. Returns "ok" if the server is running without issues.
|
| 103 |
"""
|
|
|
|
| 104 |
return {"status": "ok"}
|
| 105 |
|
| 106 |
|
|
|
|
| 8 |
logger = logging.getLogger(__name__)
|
| 9 |
|
| 10 |
|
| 11 |
+
#logging.basicConfig(filename='myapp.log', level=logging.INFO)
|
| 12 |
|
| 13 |
|
| 14 |
# 1) URL du Space HF qui héberge MLflow (tracking server)
|
|
|
|
| 93 |
"""
|
| 94 |
Bonjour
|
| 95 |
"""
|
| 96 |
+
logger.info('Hello')
|
| 97 |
return {"Hello": "World!", "version": config.__version__}
|
| 98 |
|
| 99 |
|
|
|
|
| 102 |
"""
|
| 103 |
Health line to monitor the server status of the API. Returns "ok" if the server is running without issues.
|
| 104 |
"""
|
| 105 |
+
logger.info('Health')
|
| 106 |
return {"status": "ok"}
|
| 107 |
|
| 108 |
|