Originally created on: moondream:latest
Archived on: 2025-04-21 02:00:00
Views: 2025-03-21 08:46:01
```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: @app.route('/', methods=['POST']) def ollama_api(): # POST to Ollama API with a JSON payload containing the name of the person and their age
Persuasive tone | Generated by 15