Skip to content

Commit

Permalink
point tracking at gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaya-a committed Oct 31, 2023
1 parent 8d9824f commit 26bc46f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion mlflow-gateway/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "mlflow-gateway"
description: "MLflow Gateway for managing model providers"
version: "0.0.8"
version: "0.0.9"
url: "https://github.com/akshaya-a/mlflow-hass/tree/main/mlflow-gateway"
slug: "mlflow-gateway"
init: false
Expand All @@ -13,6 +13,7 @@ panel_icon: mdi:flask
panel_title: MLflow Gateway
ingress: true
ingress_port: 5001
ingress_entry: /docs
ports:
5001/tcp: 5001
environment:
Expand Down
4 changes: 2 additions & 2 deletions mlflow-gateway/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

echo "Starting MLflow gateway"

key=$(python /config.py)
echo $key
export OPENAI_API_KEY=$key
export PYTHONPATH="/"

mlflow gateway start --config-path /route-config.yaml --port 5001 --host 0.0.0.0
2 changes: 1 addition & 1 deletion mlflow-tracking/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "mlflow-tracking"
description: "MLflow Tracking Server for managing models + prompts"
version: "0.0.8"
version: "0.0.9"
url: "https://github.com/akshaya-a/mlflow-hass/tree/main/mlflow-tracking"
slug: "mlflow-tracking"
init: false
Expand Down
4 changes: 4 additions & 0 deletions mlflow-tracking/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash

echo "Starting MLflow server"

# TODO: convert this to Supervisor REPO_SLUG format via addon discovery
export MLFLOW_GATEWAY_URI="http://localhost:5001"

mlflow server \
--backend-store-uri sqlite:///data/mydb.sqlite \
--artifacts-destination /share/tracking/mlflow-hass \
Expand Down

0 comments on commit 26bc46f

Please sign in to comment.