Skip to content

Instantly share code, notes, and snippets.

from flask import Flask, render_template, request, jsonify
import requests
app = Flask(__name__)
OLLAMA_URL = "http://localhost:11434/api/generate"
@app.route("/")
def home():
return render_template("index.html")