Skip to content

Commit

Permalink
Adding model loaded print statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Nov 20, 2024
1 parent 1f9df9e commit 07de74e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
from gliner import GLiNER
from waitress import serve

__version__ = "1.2.0"
__version__ = "1.2.1"

app = Flask(__name__)

print("Starting ph-eye version " + __version__)
model_name = os.getenv("MODEL_NAME", "philterd/ph-eye-pii-base")
print("Using model " + model_name)
model = GLiNER.from_pretrained(model_name)
print("Model loaded")
print("Model loaded and ready to serve requests")

@app.route("/status", methods=["GET"])
def status():
Expand Down

0 comments on commit 07de74e

Please sign in to comment.