This commit is contained in:
ALicja 2026-01-30 11:58:29 +01:00
parent 9ebf8d4c2a
commit ebd23d8fa8
2 changed files with 22 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.venv/
.idea/

20
main.py Normal file
View File

@ -0,0 +1,20 @@
from flask import Flask, request, jsonify
app = Flask(__name__)
# Strona główna
@app.route("/")
def home():
return "AI Pathl Test działa!"
# Endpoint testowy np. dla promptów AI
@app.route("/test", methods=["POST"])
def test_ai():
data = request.json
prompt = data.get("prompt", "")
# Na razie tylko echo promptu
response = {"response": f"Otrzymałem Twój prompt: {prompt}"}
return jsonify(response)
if __name__ == "__main__":
app.run(host="0.0.0.0", port=6000)