aider/examples/hello-world-flask.md
Paul Gauthier 1beffbde0f better
2023-05-12 15:17:50 -07:00

33 lines
914 B
Markdown

# New session started at 2023-05-12 15:17:30
_This tool will almost certainly fail to work with gpt-3.5-turbo_
_Creating /Users/gauthier/tmp/flask/app.py_
_Loading /Users/gauthier/tmp/flask/app.py_
_Files not tracked in /Users/gauthier/tmp/flask/.git:_
_- app.py_
_Add them? yes_
_Added app.py to the git repo_
_Committed new files with message: Initial commit: Added new files to the git repo: app.py_
---
#### make a flask app with a /hello endpoint that returns hello world
Ok, here are the changes:
```python
app.py
<<<<<<< ORIGINAL
=======
from flask import Flask
app = Flask(__name__)
@app.route('/hello')
def hello():
return 'Hello, World!'
>>>>>>> UPDATED
```
This code creates a Flask app and adds a `/hello` endpoint that returns "Hello, World!" when accessed.
_Applied edit to app.py_
_8f7db45 aider: Added a /hello endpoint that returns "Hello, World!" when accessed._