Posts

Showing posts from January, 2023

PYTHON GPT3 - RANDOM SET 10 DISTINCTIVE POWERBALL NUMBERS

Image
  ''' This python gui script (autogenerated by gpt3) creates a window with a button labeled "Generate Numbers".  When the button is clicked, the generate_numbers function is called to generate the 10 sets of Powerball numbers, and the save_to_file function is called to save the numbers to a file.  The file is named "powerball_[current date].txt", and the numbers are saved in the same directory as the script.  The script also displays a message "Numbers saved to file!"  on the gui window after the numbers are saved to the file. Please note that the above script is just a sample and you may need to modify it to suit your specific requirements. ''' import random import tkinter as tk from tkinter import filedialog from datetime import datetime def generate_numbers():     numbers = []     for i in range(10):         powerball_set = []         for j in range(5):             power...

Guess what was CHATgpt bot suggestion for 70+ years-old men?

SUGGESTED EXERCISE PROGRAM FOR 70+ YEARS-OLD MEN Walking                At least 30 minutes a day. C hair Yoga -          Seated Cat/Cow: Begin in a seated position with your legs crossed and your spine straight. Inhale and arch your back, lifting your chest and dropping your belly. Exhale and round your back, tucking your chin into your chest.   -          Seated Spinal Twist: Begin in a seated position with your legs crossed and your spine straight. Reach your right arm up and over your left shoulder and twist your torso to the left. Hold for a few breaths, then switch sides.   -          Seated Forward Fold: Begin in a seated position with your legs crossed and your spine straight. Inhale and raise your arms up overhead. Exhale and fold your torso forward, reaching your hands towards your toes. ...

TUTORIAL: How to Create a Python GUI that will use the power of CHATgpt

 CHATgpt SEARCH BOX V1.0 ... seeking comments, features, better code... ' ''This script (I named it py_chat_to_me.py, but you can call it whatever you want!) creates a GUI with an input field for the topic and another input field for the file name. It also creates a button that when pressed, calls the generate_text function to generate the text and save it to the specified file. This file must be saved where the api_key.py folder lives. The api_key.py folder contains the your private openai.com access key. The associated libraries are openai, re, api_key (see script at the bottom), and tkinter''' import openai import re from api_key import API_KEY import tkinter as tk from tkinter import messagebox openai.api_key = API_KEY # Set the model to use model_engine = "text-davinci-003" def generate_text():           # Get the topic from the user input     topic = topic_entry.get()     prompt = topic          # Gene...