Commit Graph
12 Commits
Author SHA1 Message Date
Tasha Upchurch 57e514b0b6 Add several new nodes:
- DecodeTranscriptNode to parse transcript text
- YoutubeUploadNode to upload videos to YouTube
- Audio metadata and file list nodes
- Image stack blending and stripping alpha channel
- Sampler dataset creation node
- Utils for deep copying tensors and arrays

Also includes:

- Testing for new utils module
- Git nodes marked with base class
- Renamed nodes.py to avoid conflicts
- Import refactoring to handle naming

Specifics:

- descript.py: New transcript parsing node
- youtube_nodes.py: New YouTube upload node
- audio.py: New audio metadata and file list nodes
- utils.py: Deep copy utility functions
- image.py: New image stack blending and alpha stripping
- tests/test_utils.py: Tests for new utils
- git.py: Marked git nodes with base class
- __init__.py: Refactored imports and mappings
- requirements.txt: Added YouTube dependencies
- functional.py: Minor tweaks
- modules/youtube.py: Helper for upload node
- video.py: Minor cleanup
- tests/test_youtube_nodes.py: Test for YouTube upload
2023-08-05 15:19:21 -04:00
Tasha Upchurch 8e57955410 Commit message:
"Added GetFirstCodeBlock class to functional.py"

Commit details:
- Added a new class called GetFirstCodeBlock to the functional.py file.
- The GetFirstCodeBlock class is used to find and return the first code block in the input text. It checks for code blocks surrounded by "```" or "```python" tags, or "<code>" tags.
- Returns an empty string if no code block is found.
- Added a new function called func to the GetFirstCodeBlock class, which takes the input text as an argument and returns the first code block.
- Updated the functional.py file with the new class and function.
- The new class is categorized under "ETK/func" and has a return type of "STRING".
- The commit message and details were created using the IDEA additional info of the patch, with the charset set to UTF-8.
2023-07-03 22:05:45 -04:00
Tasha Upchurch 117d5e9a99 1. Added a new class FuncStrToList in functional.py
2. This class has a method func that takes a string and code as input and executes the code.
3. The executed code is expected to convert the input string into a list which is then returned.
4. Also, defined INPUT_TYPES, CATEGORY, RETURN_TYPES, and FUNCTION for the class.
2023-07-01 02:52:59 -04:00
Tasha Upchurch ae3305385d 1. custom_nodes/SWAIN/text.py:
- Added a new function handler called "LoadJson" that loads a JSON object from a file and returns it as a dictionary or list.
   - Updated the RETURN_TYPES and RETURN_NAMES for the "LoadJson" function.

2. custom_nodes/SWAIN/llm.py:
   - Updated the "get_openai_embedding" function to include additional keyword arguments.
   - Added exception handling for API connection errors and API errors in the "get_openai_embedding" function.
   - Modified the "get_k_nearest_vectors" function to handle tuples as input.
   - Removed unnecessary import statements in the LLMEmbedding class.
   - Added a new function handler called "FuncStrToStr" that runs the 'eval' function on the given text with a string as input and returns a string.
   - Updated the INPUT_TYPES and RETURN_TYPES for the "FuncStrToStr" function.

3. custom_nodes/SWAIN/tests/test_llm.py:
   - Added new unit tests for the "get_openai_embedding" and "get_k_nearest_vectors" functions.
   - Fixed import statements in the test file.

4. custom_nodes/EternalKernelLiteGraphNodes/functional.py:
   - Added a new function handler called "FuncStrToStr" that runs 'eval' on the given text with a string as input and returns a string.
   - Updated the INPUT_TYPES for the "FuncStrToStr" function.

5. custom_nodes/SWAIN/bases.py:
   - Added a new widget generator for the "number" parameter type.

These changes introduce new functionality and improve the error handling and testing in the project.
2023-06-28 21:37:27 -04:00
Tasha Upchurch d2ed980b6d - Added a new class called FuncListToList to the functional.py file.
- Modified the `func` method in the `FuncRender` class in `functional.py` to return a tuple.
- Modified the `video_folders` function in `video.py` to include a return statement.
- Modified the `video_files` function in `video.py` to include a return statement.
- Added a new parameter `func` with a default value of `None` to the `optional` dictionary in the `ImageStackToVideoFile` class in `video.py`.
- Updated the `handler` method in the `ImageStackToVideoFile` class in `video.py` to include a check for the `optional` parameter `func`.
2023-06-26 17:49:06 -04:00
Tasha Upchurch 006236637e Add support for additional function and code inputs in FuncBase and FuncRender classes. 2023-06-18 20:28:42 -04:00
Tasha Upchurch 4f9c3ed310 better functional integration 2023-06-14 16:00:50 -04:00
Tasha Upchurch 5599883244 fixed missing instructions 2023-06-13 01:54:47 -04:00
Tasha Upchurch 77535a77f1 bug fixs for various issues around module structure. 2023-06-12 23:24:02 -04:00
Tasha Upchurch dbb0643959 just moving things around 2023-06-12 15:55:08 -04:00
Timothy Eakin f9aaedc0f2 moved Code Execution widget to ETL/func and functional.py 2023-06-10 15:03:55 -04:00
Tasha Upchurch 26c8b8df0d beginnings of a node collection for functional composition etc. 2023-05-29 22:36:53 -04:00