Dennis G D
@DennisGG
Public Repls
Community
0
0
0
0
openai image generatorcredit
https://github.com/hanhg95
source
https://raw.githubusercontent.com/hanhg95/AI-image-generator/main/Image_generator.py
0
0
0
flet carousel attempttrying to get this to work
https://raw.githubusercontent.com/JarriqTheTechie/Flet_Carousel/master/carousel.py
gettting error
1
0
0
streamlit and langchain use your own API key!credit goes to
https://medium.com/@avra42/getting-started-with-langchain-a-powerful-tool-for-working-with-large-language-models-286419ba0842
to run it
in the console type
streamlit run main.py
You MUST provide your own openai API key!
effort to reproduce
https://medium.com/@avra42/getting-started-with-langchain-a-powerful-tool-for-working-with-large-language-models-286419ba0842
0
0
0
python quote sqlite engine written by chatgpt NOT replit GWI need a way to make the display function loop over the quotes once the original list has been exhausted.
All of this code was written by chatgpt with this prompt:
Create an a function in python that generates a random new quote.
create a function that saves the quote to a dictionary.
create a function that verifies that the same quote until all other quotes have been displayed.
create a function that Prompts the user if they want another quote.
y = yes another quote
n = no stop
Loop until user types X for exit.
Create a function that creates a table called quotes and saves each unique quote into sqlite database our_quotes.
create a function that Verifies that the quote was written
create a function that Saves the quote
tell user in console which quotes were written to the quotes.db
Anticipate errors like this one:
Traceback (most recent call last):
File "main.py", line 38, in
conn.execute(f"INSERT INTO quotes (text, created_at) VALUES ('{quote}', '{created_at}
0
0
1
Flet Cart needs abstraction to load multiple categoriessource and credit
https://github.com/bobwatcherx?tab=repositories
This app should really be talking to a spreadsheet for data
https://gist.github.com/pleabargain/dd0d92517a3684617666bcd0e7b0e337
Make it easy for owners to change their pricing in real time.
https://raw.githubusercontent.com/bobwatcherx/FletCartOrder/master/main.py
2
1
0
python 3.10 switch case example writing to an SQLite dbI built this in chatgpt3 in about 90 minutes
run wholething.py
takes user name
input
spits out response
writes to a db
asks for more input
0
0
0
python convert pdf to jpgdownload
put into target folder
load pdf file
name new images
run
good luck w/ poppler!
0
0
0
1
python infinite questions input saved to JSONnear infinite questions from API call
currently saving to json with correct indent!
still working on save to sqlite3
using python to write JSON to SQLite and getting error:
Error: string indices must be integers
insert_quiz_question(str(question_data))
then FLET(?!) for UI to make it pretty for users
Flet has a PWA feature so theoretically users could download a fullblown app with a DB populated with data.
1
1
0
starwars squadrons and pilots DBs SQLite in Pythoncreates a DB
some python scripts for manipulating the data
can add new pilots to the database via console form
0
0
0
python turtle spiral circlesFeel the power of python turtle! :)
0
0
0
python turtle fun with spiral boxesRemember when drawing simple geometric shapes made you feel like a coding god?
I do! :)
It was just two seconds ago! LOL!
0
0