diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-06-23 18:37:46 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-06-23 18:37:46 +0900 |
| commit | 21b59cc1d0928dc04dcf5eac24470aaa05013b2d (patch) | |
| tree | 9888aa23aafea3907ce96eb958a06d4369dad86e /src/ollama_web/main.py | |
| parent | de0513e7cb0593b1aa141e367ff4da7156d6110f (diff) | |
基本機能実装
Diffstat (limited to 'src/ollama_web/main.py')
| -rw-r--r-- | src/ollama_web/main.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ollama_web/main.py b/src/ollama_web/main.py index c6836fc..4d540ea 100644 --- a/src/ollama_web/main.py +++ b/src/ollama_web/main.py @@ -1,11 +1,24 @@ """Main entry point for the ollama-web application.""" +from __future__ import annotations + import sys +import uvicorn + +from .config import settings + def main() -> int: """Run the application.""" - print("ollama-web starting...") + print(f"ollama-web starting on http://{settings.host}:{settings.port}") + print(f"Ollama host: {settings.ollama_host}") + uvicorn.run( + "ollama_web.app:app", + host=settings.host, + port=settings.port, + reload=False, + ) return 0 |
