Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ from graphviz import Digraph
|
|
| 4 |
|
| 5 |
st.markdown("""
|
| 6 |
|
| 7 |
-
# π Two easy ways to turbo boost your AI learning journey! π»
|
| 8 |
|
| 9 |
# π AI Pair Programming
|
| 10 |
## Open 2 Browsers to:
|
|
@@ -21,21 +21,73 @@ st.markdown("""
|
|
| 21 |
3. π Try watching the videos at a faster speed while exercising, and sample the first five minutes of each video.
|
| 22 |
4. π Reorder the playlist so the most useful videos are at the front, and take breaks to exercise.
|
| 23 |
5. π Practice note-taking in markdown to instantly save what you want to remember. Share your notes with others!
|
| 24 |
-
6. π₯ AI Pair Programming Using Long Answer Language Models with Human Feedback
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
9. [2023 AutoML DataRobot and AI Platforms for Building Models, Features, Test, and Transparency](https://www.youtube.com/playlist?list=PLHgX2IExbFovsY2oGbDwdEhPrakkC8i3g)
|
| 36 |
""")
|
| 37 |
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
st.markdown("""
|
| 40 |
|
| 41 |
# Cognitive AI with Human Feedback (CAHF) [Example π©ΊβοΈ](https://huggingface.co/spaces/awacke1/Cognitive-AI-Episodic-Semantic-Memory-Demo):
|
|
|
|
| 4 |
|
| 5 |
st.markdown("""
|
| 6 |
|
| 7 |
+
# π Multiply your productivity by 100 times today using AI - Two easy ways to turbo boost your AI learning journey! π»
|
| 8 |
|
| 9 |
# π AI Pair Programming
|
| 10 |
## Open 2 Browsers to:
|
|
|
|
| 21 |
3. π Try watching the videos at a faster speed while exercising, and sample the first five minutes of each video.
|
| 22 |
4. π Reorder the playlist so the most useful videos are at the front, and take breaks to exercise.
|
| 23 |
5. π Practice note-taking in markdown to instantly save what you want to remember. Share your notes with others!
|
| 24 |
+
6. π₯ AI Pair Programming Using Long Answer Language Models with Human Feedback
|
| 25 |
+
7. ## π₯ 2023 AI/ML Advanced Learning Playlists:
|
| 26 |
+
1. [2023 QA Models and Long Form Question Answering NLP](https://www.youtube.com/playlist?list=PLHgX2IExbFovrkkx8HMTLNgYdjCMNYmX_)
|
| 27 |
+
2. [FHIR Bioinformatics Development Using AI/ML and Python, Streamlit, and Gradio - 2022](https://www.youtube.com/playlist?list=PLHgX2IExbFovoMUC3hYXeFegpk_Y0Lz0Q)
|
| 28 |
+
3. [2023 ChatGPT for Coding Assistant Streamlit, Gradio and Python Apps](https://www.youtube.com/playlist?list=PLHgX2IExbFouOEnppexiKZVdz_k5b0pvI)
|
| 29 |
+
4. [2023 BigScience Bloom - Large Language Model for AI Systems and NLP](https://www.youtube.com/playlist?list=PLHgX2IExbFouqnsIqziThlPCX_miiDq14)
|
| 30 |
+
5. [2023 Streamlit Pro Tips for AI UI UX for Data Science, Engineering, and Mathematics](https://www.youtube.com/playlist?list=PLHgX2IExbFou3cP19hHO9Xb-cN8uwr5RM)
|
| 31 |
+
6. [2023 Fun, New and Interesting AI, Videos, and AI/ML Techniques](https://www.youtube.com/playlist?list=PLHgX2IExbFotoMt32SrT3Xynt5BXTGnEP)
|
| 32 |
+
7. [2023 Best Minds in AGI AI Gamification and Large Language Models](https://www.youtube.com/playlist?list=PLHgX2IExbFotmFeBTpyje1uI22n0GAkXT)
|
| 33 |
+
8. [2023 State of the Art for Vision Image Classification, Text Classification and Regression, Extractive Question Answering and Tabular Classification](https://www.youtube.com/playlist?list=PLHgX2IExbFotPcPu6pauNHOoZTTbnAQ2F)
|
| 34 |
+
9. [2023 AutoML DataRobot and AI Platforms for Building Models, Features, Test, and Transparency](https://www.youtube.com/playlist?list=PLHgX2IExbFovsY2oGbDwdEhPrakkC8i3g)
|
|
|
|
| 35 |
""")
|
| 36 |
|
| 37 |
|
| 38 |
+
st.markdown("""
|
| 39 |
+
|
| 40 |
+
# Multiply your productivity by 100 times today using AI:
|
| 41 |
+
- Lets prove it with HuggingFace, Gradio, Streamlit, ChatGPT,and HTML/Javascript
|
| 42 |
+
- My Progression:
|
| 43 |
+
1. 2021 - With AI Coding From Scratch **10 AI programs per year** = 1 AI Program per 36.5 days.
|
| 44 |
+
2. 2022 - Discovered HF Spaces. **200 AI Programs** = a little over .5 Programs per day.
|
| 45 |
+
3. 2023 - New process - **AI Pair Programming** ChatGPT+HF = 266 in Q1 (**1064 programs per year**)
|
| 46 |
+
4. Conclusion: Over 100x with this simple recipe.
|
| 47 |
+
|
| 48 |
+
## When focused using AI to write outline, simplify outline, generate examples, debug and curate:
|
| 49 |
+
1. **Record:** 30 working programs in 2 days on planned subject outline. (15/day)
|
| 50 |
+
2. Synopsis: Learning in the Loop - AI Pair programming expands your knowledge.
|
| 51 |
+
3. Use **Targeted AI vocabulary keywords** to generate domain specific code and text mashups.
|
| 52 |
+
|
| 53 |
+
# How to Prompt using domain technical knowledge to accelerate process of design and development.
|
| 54 |
+
1. Top Ten Favorite Quick and Easy prompting patterns:
|
| 55 |
+
1. **Markdown** 1,2,3
|
| 56 |
+
1. **Prompt:** Create a markdown cheat sheet that lists all the commands and short instructions for performing markdown code.
|
| 57 |
+
2. **Trouble** with code versus non code due to delimiters like triple apostrophe? Its using markdown.
|
| 58 |
+
3. **Prompt:** Show full code listing in markdown code delimited by ``` with no comments
|
| 59 |
+
2. **Mermaid** for sorted and organized graphs.
|
| 60 |
+
3. **Python Streamlit** and Python gradio with code example input.
|
| 61 |
+
4. **Progressions** iterate with prompts to get what you want in a few steps..
|
| 62 |
+
1. **Prompt and Experiment:** Write an AI program using python, streamlit sklearn and keras to produce an AI program predicting sepal length.
|
| 63 |
+
2. **Curate and Revise:** Show full code listing. remove commentary. Make code listing as short as possible with few lines of code
|
| 64 |
+
3. **Reinforce and Teach:** Test and Share with HF to debug and test. Demonstrate and share links to others.
|
| 65 |
+
2. **Why does this work?** Copy and Modify Pattern, Mirroring, and the Human Brain.
|
| 66 |
+
3. **Life Lessons** from Steel Manufacturing - Innovation, Productivity
|
| 67 |
+
1. **US Steel** - Cost of not changing and 5%
|
| 68 |
+
2. **Tata Steel** - Employment, Karma, and Legends
|
| 69 |
+
|
| 70 |
+
# HF Token - Create a new token in Settings for this code:
|
| 71 |
+
HF_TOKEN = os.environ.get("HF_TOKEN") # get token from secrets, copy token value HF_TOKEN from Profile settings token into this repo settings
|
| 72 |
+
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B", api_key=HF_TOKEN) # add api_key=HF_TOKEN to get over the quota error
|
| 73 |
+
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B", api_key=HF_TOKEN)
|
| 74 |
+
generator1 = gr.Interface.load("huggingface/gpt2-large", api_key=HF_TOKEN)
|
| 75 |
+
gr.Parallel(generator1, generator2, generator3, inputs=gr.inputs.Textbox(lines=5, label="Enter a sentence to get another sentence."),
|
| 76 |
+
title=title, examples=examples).launch(share=False)
|
| 77 |
+
|
| 78 |
+
# Access Tokens:
|
| 79 |
+

|
| 80 |
+
|
| 81 |
+
3. Gradio Spaces - Lets set time records for copy/modify pattern
|
| 82 |
+
1. Concept, Examples, 3 AI Models: https://huggingface.co/spaces/awacke1/Sentence2Paragraph
|
| 83 |
+
2. Generative AI: https://huggingface.co/spaces/awacke1/Image-to-Line-Drawings
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
""")
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
st.markdown("""
|
| 92 |
|
| 93 |
# Cognitive AI with Human Feedback (CAHF) [Example π©ΊβοΈ](https://huggingface.co/spaces/awacke1/Cognitive-AI-Episodic-Semantic-Memory-Demo):
|