By flask-ollama | Created on 2025-06-17 05:12:29
Written with a persuasive tone 🗣️ | Model: moondream:latest
```python from flask import Flask, request, Response app = Flask(name)
@app.route('/', methods=['POST']) def ollama_api(): # POST to Ollama API with a JSON payload containing the name of the person and their age payload = request.get_json()
# Send response back to user
resp = Response(json.dumps(payload), mimetype='application/json')
return resp
No related posts found.