Spaces:
Running
Running
fix: dashboard api fetching url
Browse files- config/settings.py +2 -0
- main.py +1 -1
config/settings.py
CHANGED
|
@@ -82,6 +82,8 @@ class AppConfig(BaseSettings):
|
|
| 82 |
depth: DepthConfig
|
| 83 |
intervals: IntervalsConfig
|
| 84 |
redis_url: str
|
|
|
|
|
|
|
| 85 |
|
| 86 |
@classmethod
|
| 87 |
def settings_customise_sources(
|
|
|
|
| 82 |
depth: DepthConfig
|
| 83 |
intervals: IntervalsConfig
|
| 84 |
redis_url: str
|
| 85 |
+
dagshub_user_token: str
|
| 86 |
+
hf_cache_dir: str
|
| 87 |
|
| 88 |
@classmethod
|
| 89 |
def settings_customise_sources(
|
main.py
CHANGED
|
@@ -72,7 +72,7 @@ async def lifespan(app: FastAPI):
|
|
| 72 |
|
| 73 |
# MLFlow setup
|
| 74 |
dagshub.init(repo_owner="eslam760000", repo_name="p-tracking_system", mlflow=True)
|
| 75 |
-
mlflow.set_tracking_uri("sqlite:///config/logs/mlflow.db")
|
| 76 |
mlflow.set_experiment("realtime-detection-system")
|
| 77 |
parent_run = mlflow.start_run(run_name="server_session")
|
| 78 |
mlflow.enable_system_metrics_logging()
|
|
|
|
| 72 |
|
| 73 |
# MLFlow setup
|
| 74 |
dagshub.init(repo_owner="eslam760000", repo_name="p-tracking_system", mlflow=True)
|
| 75 |
+
# mlflow.set_tracking_uri("sqlite:///config/logs/mlflow.db")
|
| 76 |
mlflow.set_experiment("realtime-detection-system")
|
| 77 |
parent_run = mlflow.start_run(run_name="server_session")
|
| 78 |
mlflow.enable_system_metrics_logging()
|