This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When creating Python code, use the following guidance | |
| - Use Flask as the web framework | |
| - Follow Flask's application factory pattern | |
| - Use Pydantic for data validation | |
| - Use environment variables for configuration | |
| - Implement Flask-SQLAlchemy for database operations | |
| - Use Swagger to provide an interactive API UI | |
| Use the following project structure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Note: This is for titan-express, but for any model you use, you will bring your own payloads and simply run this code. | |
| import json | |
| import time | |
| import asyncio | |
| import requests as req | |
| import botocore.session | |
| from itertools import groupby | |
| from operator import itemgetter | |
| from botocore.auth import SigV4Auth |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'Update or create a stack given a name and template + params' | |
| from __future__ import division, print_function, unicode_literals | |
| from datetime import datetime | |
| import logging | |
| import json | |
| import sys | |
| import boto3 | |
| import botocore |