Originally created on: moondream:latest
Archived on: 2025-07-18 02:00:00
Views: 2025-06-17 05:12:29
```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
Tags: [ 'name', 'age' ]
Author: flask-ollama
Persuasive tone | Generated by 21