Init flask

This commit is contained in:
2026-01-09 10:35:53 +01:00
parent c96794378a
commit 6860689299
4 changed files with 16 additions and 6 deletions

View File

@@ -1,6 +1,4 @@
import morfeusz2 import conmorfeusz.web as web
def main(): def main():
morf = morfeusz2.Morfeusz() web.start()
analysis = morf.analyse('Ala ma kota.')
for i, j, interp in analysis:
print(i, j, interp)

View File

@@ -0,0 +1,10 @@
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, world"
def start():
app.run(port=3000)

View File

@@ -42,6 +42,7 @@ in
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with pythonPackages; [
morfeusz2 morfeusz2
flask
]; ];
nativeBuildInputs = with pythonPackages; [ nativeBuildInputs = with pythonPackages; [

View File

@@ -9,7 +9,8 @@ description = "Connects Morfeusz and Concraft-pl glued together"
requires-python = "==3.6" requires-python = "==3.6"
dependencies = [ dependencies = [
"morfeusz2==1.99.12" "morfeusz2==1.99.12",
"flask"
] ]
[tool.setuptools] [tool.setuptools]