Skip to content

Commit ad45e60

Browse files
committed
feat: add reorganizing files
1 parent 839ad8b commit ad45e60

File tree

9 files changed

+8
-5
lines changed

9 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ You need to create a `.env` file with your `OPENAI_API_KEY`.
2929

3030
[Check the playground](playground/) to understand the basics.
3131

32-
These projects are based on two courses:
32+
These projects are based on three courses:
3333

3434
- [Mastering OpenAI Python APIs: Unleash the Power of GPT4](https://www.udemy.com/course/mastering-openai/) by Colt Steele (2023).
35+
- [The Ultimate Guide To ChatGPT & Midjourney](https://www.udemy.com/course/the-ultimate-guide-to-chatgpt-midjourney-prompt-engineering-openai-gpt/) by Colt Steele (2023).
3536
- [ChatGPT - The Complete Guide to ChatGPT & OpenAI APIs](https://www.udemy.com/course/chatgpt-bard-bing-complete-guide-to-chatgpt-openai-apis/) by Maximilian Schwarzmüller (2023).

playground/31-reorganizing-files.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 3,
5+
"execution_count": 6,
66
"metadata": {},
77
"outputs": [
88
{
99
"name": "stdout",
1010
"output_type": "stream",
1111
"text": [
12-
"Files renamed and moved successfully!\n"
12+
"Files copied and renamed successfully!\n"
1313
]
1414
}
1515
],
@@ -27,7 +27,7 @@
2727
" for parent_dir in os.listdir(root_dir):\n",
2828
" parent_dir_path = os.path.join(root_dir, parent_dir)\n",
2929
" \n",
30-
" if os.path.isdir(parent_dir_path):\n",
30+
" if os.path.isdir(parent_dir_path) and parent_dir != new_dir_name:\n",
3131
" for filename in os.listdir(parent_dir_path):\n",
3232
" if filename.endswith(\".txt\"):\n",
3333
" new_filename = f\"{parent_dir}_{filename}\"\n",

playground/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ For Stable Diffusion, you need to add your `STABILITY_AI_KEY`. You can find it i
106106
## Utility Scripts
107107

108108
- [renaming files](22-rename.py) in a folder.
109+
- [reorganizing files](31-reorganizing-files.ipynb).
109110

110111
## Using ChatGPT for Programming Development
111112

@@ -124,7 +125,8 @@ For Stable Diffusion, you need to add your `STABILITY_AI_KEY`. You can find it i
124125
- creating a [text summarization tool](29-text-summarization-tool.ipynb).
125126
- [processing text](30-processing-text-files.ipynb) from a file and creating a new file.
126127

127-
These examples are based on two courses:
128+
These examples are based on three courses:
128129

129130
- [Mastering OpenAI Python APIs: Unleash the Power of GPT4](https://www.udemy.com/course/mastering-openai/) by Colt Steele (2023).
131+
- [The Ultimate Guide To ChatGPT & Midjourney](https://www.udemy.com/course/the-ultimate-guide-to-chatgpt-midjourney-prompt-engineering-openai-gpt/) by Colt Steele (2023).
130132
- [ChatGPT - The Complete Guide to ChatGPT & OpenAI APIs](https://www.udemy.com/course/chatgpt-bard-bing-complete-guide-to-chatgpt-openai-apis/) by Maximilian Schwarzmüller (2023).

playground/folders/texts/ready to upload/1_1.txt

Whitespace-only changes.

playground/folders/texts/ready to upload/1_2.txt

Whitespace-only changes.

playground/folders/texts/ready to upload/1_3.txt

Whitespace-only changes.

playground/folders/texts/ready to upload/2_1.txt

Whitespace-only changes.

playground/folders/texts/ready to upload/2_2.txt

Whitespace-only changes.

playground/folders/texts/ready to upload/2_3.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)