AI-as-an-API-Course-Reference
AI-as-an-API-Course-Reference copied to clipboard
This repository is the exact code used in the course. For the complete & most up to date project go to https://github.com/codingforentrepreneurs/AI-as-an-API
https://github.com/codingforentrepreneurs/AI-as-an-API-Course-Reference/blob/4f1249fff43da935d1be8f67d9d65c348db4c33a/app/main.py#L78 Suggest you change this part to: ```Python def fetch_rows( stmt:SimpleStatement, fetch_size:int = 25, session=None): stmt.fetch_size = fetch_size result_set = session.execute(stmt) yield "uuid,label,confidence,query,version\n" while True: for row in result_set.current_rows: yield...