Posts

Showing posts from April, 2023

Got a little help from a new Friend - CHATGPT

Image
 I have been tinkering around with OPENAI's CHATGPT. I asked help to remedy the issue of the small box to ask questions of CHATGPT in my PythonAnywhere experiment.  Below is a image of one exchange - it takes me longer to formulate the question than CHATGPT to start to generate an answer.  I would try a response - it might not work, so I would rephrase the context or the question and ask again. Specifically it was recommending using text area but I had difficulty seeing how to return the value in the box to be able to submit to CHATGPT. I finally got it to work and have CHATGPT return a answer from the TEXTAREA html construct. ChatGPT return text formatted HTML. In other words I was getting the HTML command as visible text.  So asked ChatGPT - " How to display HTML in flask {{answer}} " It provide a solution I was unaware of - the "SAFE" command in FLASK Here is where I implemented it in ANSWER.HTML of my PythonAnywhere effort.

Coding paused due and restored

 A couple of weeks ago I started getting an "Internal Server Error" when I attempted to post a question.  The error log - https://www.pythonanywhere.com/user/BenConnolly/files/var/log/benconnolly.pythonanywhere.com.error.log  reported the following: 2023-04-09 12:11:19,223: error_code=None error_message='You exceeded your current quota, please check your plan and billing details.' error_param=None error_type=insufficient_quota message='OpenAI API error received' stream_error=False I debated with myself if I should sign up for the API Key subscription. Over the weekend the CBS show called 60 Minutes dedicated 2 segment on Artificial Intellience.  This was an inspiration -  I signed up for a pay as you go plan yesterday.