Commit Graph
56 Commits
Author SHA1 Message Date
Tasha Upchurch b2ea3a6fa8 aider: Renamed class "PromptTemplate" to "PublicGitRepo" and updated method calls accordingly.
# Context:
USER: Prompt template is a definition for a node that the server will use.. the server will supply information about the node to the front end.
USER: the class should be renamed, "PublicGitRepo"
2023-07-07 02:19:25 -04:00
Tasha Upchurch e2615da287 aider: Added git_url input to the prompt_template_handler function in git.py.
# Context:
USER: please add a node to supply the URL of a git repository.
2023-07-07 02:16:58 -04:00
Tasha Upchurch e6215518e3 Added a commented out class PromptTemplate with a method prompt_template_handler that replaces text in a given string with another text at some key positions.y 2023-07-07 02:16:08 -04:00
Tasha Upchurch 0ecff05fbf aider: Added a basic abstract class for a node in git.py.
# Context:
USER: in git.py add a basic abstract class for a node
2023-07-07 02:07:43 -04:00
Tasha Upchurch 0d6a74636f aider: Add a basic node for this module to provide functions for interacting with Git.
# Context:
USER: add a basic node for this module like there is in image.py
2023-07-07 01:57:06 -04:00
Tasha Upchurch 7aeaf10c52 aider: Added a function to check the git status and print it.
# Context:
USER: status
2023-07-07 01:54:57 -04:00
Tasha Upchurch d1827f184d aider: Added a main function to image.py.
# Context:
USER: add `image.py`
ASSISTANT: Sure, I can help with that. However, I need more information about what you want to include in `image.py`. Could you please provide more details?
USER: I need you to use it so you can understand the framework
ASSISTANT: I understand that you want me to create a new file named `image.py`. However, without specific details about what this file should contain, I can only provide a basic template. Here's a simple Python file structure:

```python
image.py
<<<<<<< ORIGINAL

=======
# This is a new file named image.py

def main():
    pass

if __name__ == "__main__":
    main()
>>>>>>> UPDATED
```

Please provide more details if you need specific functions or classes in this file.
2023-07-07 01:53:27 -04:00
Tasha Upchurch 6f72f7ab60 Added new files to the git repo: git.py 2023-07-07 01:50:58 -04:00
Tasha Upchurch e18961e639 - Added a new test TestTemporalSpatialSmoothing in tests/test_video.py
- This test validates the functionality of the `TemporalSpatialSmoothing` handler, which smooths image stacks in both temporal and spatial dimensions.
  - The test uses random frames of noise and verifies the correctness of the handler.
- Made minor changes in `image.py`
  - Updated code formatting for improved readability and consistency.
  - Added error handling for cases when creating a PIL image from a numpy array.
- No significant changes were made in `video.py`.

These changes primarily focus on adding test coverage and maintaining code quality.
2023-07-07 01:50:19 -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 87792fe33d Import classes directly from file instead of using importlib
fix for bug that was allowing importlib to find addons from other installations.
2023-06-26 17:47:53 -04:00
Tasha Upchurch 5692f0fe45 Merge remote-tracking branch 'origin/main' 2023-06-21 17:25:32 -04:00
Tasha Upchurch 1885329c7a Remove unused class "Prompt Template" in __init__.py
Details:
- Removed the unused class "Prompt Template" in the __init__.py file.
- This class was not being used and was causing clutter in the codebase.
- The removal improves code readability and maintainability.
2023-06-21 17:25:07 -04:00
Timothy Eakin e2d0dfbf2e Moved PromptTemplate back to image.py. 2023-06-19 18:12:43 -04:00
Timothy Eakin 513a5118cd Moved PromptTemplate to text.py. 2023-06-19 15:10:20 -04:00
Tasha Upchurch 906fec459e - Added test_descript.py to test the DecodeTranscriptNode class.
- Added test_video.py to test the ImageStackToVideoFile class.
- Both tests ensure the functionality and correctness of the respective classes.
2023-06-18 20:33:31 -04:00
Tasha Upchurch 59d03a3f4a Commit Message:
- Updated video.py
- Added new classes for converting image stack to video frames and video file.
- Fixed input and output directories for video files.
2023-06-18 20:32:18 -04:00
Tasha Upchurch aca7f50a4b Fixed exception handling in image.py and updated FUNC assignment in line 274. 2023-06-18 20:31:38 -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 f5d1711fe9 Patch: descript.py
Changes made:
1. Created a new class called DecodeTranscriptNode.
2. Added class method INPUT_TYPES() to define the input types for the class.
3. Defined class variables RETURN_TYPES, RETURN_NAMES, and OUTPUT_NODE for the class.
4. Implemented the func() method to decode a descript transcript file and return the speakers, durations, and paragraphs as lists of strings.
5. Added the ETK_descript_base decorator to the class.

Impact: The new DecodeTranscriptNode class allows for decoding descript transcript files and extracting the speakers, durations, and paragraphs from the file.

Note: The patch also includes some import statements and post-processing calculations for the durations.
2023-06-18 20:28:04 -04:00
Tasha Upchurch fa3d74a6fc Refactor node class mappings in __init__.py
- Updated the import statements to only import necessary modules and classes.
- Changed the approach to dynamically import modules and retrieve classes using importlib.
- Added a check for ImportError when importing modules, and if not using generic nodes, skip the module.
- Removed NODE_CLASS_MAPPINGS_GENERIC and NODE_CLASS_MAPPINGS_COMFY dictionaries.
- Updated NODE_CLASS_MAPPINGS with the new mappings and added the old mappings.
- Removed the unused OLD_NODE_CLASS_MAPPINGS dictionary.
- Added a check to remove nodes with None values from NODE_CLASS_MAPPINGS.
- Imported the video node class mappings and updated NODE_CLASS_MAPPINGS with them as well.
- Added comments for clarity.
2023-06-18 20:22:57 -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
Timothy Eakin c3b5a7dd0f renamed and refactored Eval widget to Code Exec(ution) Widget 2023-06-07 14:19:04 -04:00
Timothy Eakin d4ea966ef2 better place for this 2023-06-06 16:22:29 -04:00
Tasha Upchurch ce78538c82 changes to how exec widget works, still trying to find its best self! 2023-06-05 11:42:47 -04:00
Tasha Upchurch 7e314b0ffb updates to eval widget, now a bit easier to understand usage. also more to come! 2023-06-04 14:38:54 -04:00
Tasha Upchurch 5d9d5abadd formatting 2023-06-04 13:49:25 -04:00
Tasha Upchurch a963ca550b first working ide node for python code 2023-06-04 00:55:46 -04:00
Tasha Upchurch 3862c3e34a changes to help with tests 2023-06-04 00:55:06 -04:00
Tasha Upchurch 07cc1278f9 memory leak somewhere WIP 2023-06-02 21:50:56 -04:00
Tasha Upchurch f4d51c07a8 added the ability to render text in any found font to an image 2023-06-01 23:59:26 -04:00
Tasha Upchurch f56354cf9b fixed reversion in functionality 2023-06-01 23:58:56 -04:00
Tasha Upchurch 5bf9151fdb quick check for tinytxt2img caching th model 2023-06-01 12:10:15 -04:00
Tasha Upchurch f6d1f495c5 update to latest comfy 2023-05-30 15:04:02 -04:00
Tasha Upchurch 1abb75a740 bugfixs 2023-05-29 22:39:10 -04:00
Tasha Upchurch dacbed79c2 changes to exec node and the ability to return TinyTextToImage as a function 2023-05-29 22:38:37 -04:00
Tasha Upchurch eb6f956051 inits for functional nodes 2023-05-29 22:37:41 -04:00
Tasha Upchurch 26c8b8df0d beginnings of a node collection for functional composition etc. 2023-05-29 22:36:53 -04:00
Tasha Upchurch ed56fc2f9d ETK Video based nodes! 2023-05-28 06:42:19 -04:00
Tasha Upchurch 5741cbfe83 fixup for some zombie code 2023-05-28 01:55:37 -04:00
Tasha Upchurch 5539ec6cb2 bugfix 2023-05-28 01:30:33 -04:00
Tasha Upchurch 71f971cd0f removed necessary import 2023-05-27 12:45:09 -04:00
Tasha Upchurch 6a21fffe63 bug fixs and node labeling 2023-05-26 17:10:49 -04:00