This commit is contained in:
2025-08-23 17:44:08 +02:00
parent 640f8bd824
commit 8750430cde
4 changed files with 20 additions and 18 deletions
+2 -2
View File
@@ -3,10 +3,10 @@ from file_serv import bp as uploader_bp
from waitress import serve
app = Flask(__name__)
HOST_ADDRESS = "192.168.1.15"
HOST_ADDRESS = "127.0.0.1"
PORT_ADDRESS = 49151
if __name__ == "__main__":
app.register_blueprint(uploader_bp, url_prefix="/api")
serve(app, host=HOST_ADDRESS, port=PORT_ADDRESS)
serve(app, host=HOST_ADDRESS, port=PORT_ADDRESS)
+1 -1
View File
@@ -86,7 +86,7 @@ def upload_to_drive(local_path: Path, filename: str) -> Optional[Dict[str, Any]]
@bp.get("/health")
def health():
return jsonify(ok=True)
return jsonify(ok=True, info="Okidokie")
@bp.post("/upload")
def upload():
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
cd ../conjurer/ && git pull && cp ./gpt_interface/* ../gpt_interf_serv/ && cd -