Commit Graph
28 Commits
Author SHA1 Message Date
Tasha Upchurch b57701a669 Removed redundant NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS declarations and centralized imports across files.
Simplified class imports and added fallback mechanisms for missing modules.
Enhanced image.py with new nodes like LoadImageFromPath and SaveImageToPath.
Updated server_endpoints.py with file-backed dictionary for user data persistence.
Refined node creation and sampling logic in pytorch_nodes.py and hf_diffusers_nodes.py for improved modularity and consistency."
2024-09-22 20:04:00 -06:00
Tasha Upchurch f3435c7fc8 git.py:
Imports Repo from the git module.
Removes unused imports such as InvalidGitRepositoryError, os, copy, re, and imports from custom modules.
Removes the check_for_js_extension() function and its related logic, which checked for and copied JavaScript extension files.
image.py:

Modifies the ImageStackAndMatch class:
Updates the input type specifications.
Adds a new function hex_to_rgb to convert hex color codes to RGB tuples.
Adds a new function pad_to_max_size to pad images to a specified size.
Adds a new function resize_image to resize images with interpolation.
Modifies the process_image function to use the new functions for scaling and padding.
Modifies the process_images function to process up to four images, scaling them, and stacking them into a tensor.
functional.py:

Adds a new class FuncAnysToLatent:
This class runs eval on given text with five "any" inputs and outputs a latent value.
Specifies input types for five "any" inputs and the text to evaluate.
Provides a func function that executes the provided code with the inputs and returns the result as a latent value.
basic.py:

Modifies the get_value function:
Adds a check to ensure that LIST is a list type before returning it; otherwise, it returns an error message.
2023-11-28 20:07:32 -05:00
Tasha Upchurch 074904bce9 MVF (functionality) of Git and Login security. 2023-10-28 13:55:08 -04:00
Tasha Upchurch c870bf3e08 switched to just using subprocess to call git commands 2023-10-25 12:21:09 -04:00
Tasha Upchurch 3890f3d326 adding feature to load and save from git securely. 2023-10-24 21:00:06 -04:00
Tasha Upchurch 209bb43090 fix for unknown function "func" in clone repo node 2023-10-23 00:48:40 -04:00
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 4b55e7203b - Added initial implementation of Git-related functionality in git.py.
- Introduced widget definitions for Git-related operations in `bases.py`.

These changes lay the foundation for Git-related functionality in the codebase and provide widget definitions for interacting with Git repositories.
2023-07-07 18:44:00 -04:00
Tasha Upchurch e1dc2eb814 aider: Create test for CreateRepoNode class.
# Context:
USER: please create a tist for `CreateRepoNode`
2023-07-07 02:35:18 -04:00
Tasha Upchurch d13f184eab aider: Create a new node that creates a new local git repository at a given subdirectory.
# Context:
USER: create a new node that will create a new local git repository at a given subdirectory
2023-07-07 02:32:59 -04:00
Tasha Upchurch dcfeafaebc Added PublicGitRepo and SendCommitNode classes. 2023-07-07 02:32:00 -04:00
Tasha Upchurch c3826dd0a1 aider: Added a new class SendCommitNode that provides the functionality of sending a commit to a public Git repository.
# Context:
USER: create a new node (that means a new class) that will provide the functionality of send_commit
2023-07-07 02:31:15 -04:00
Tasha Upchurch c87b10ad53 aider: Added a new node to provide send_Commit.
# Context:
USER: create a new node that will provide send_Commit
2023-07-07 02:30:19 -04:00
Tasha Upchurch 68b4bac0dc Changed CATEGORY value in PublicGitRepo class to "ETK/git". 2023-07-07 02:30:00 -04:00
Tasha Upchurch 25de52af2a aider: Added functionality to send commits to public repos.
# Context:
USER: what package can we use to be able to send commits to public repos?
2023-07-07 02:28:40 -04:00
Tasha Upchurch e765c77f63 Added a new class PublicGitRepo with a method validate_git_repo_url that parses a git URL using giturlparse. 2023-07-07 02:27:53 -04:00
Tasha Upchurch ad8b0b58c6 aider: Added package dependency for sending commits to public repos.
# Context:
USER: I have changed git.py
USER: what package can we use to be able to send commits to public repos?
2023-07-07 02:26:38 -04:00
Tasha Upchurch 7748b4b142 Added INPUT_TYPES class method to PublicGitRepo class to define required input types for the function, and modified validate_git_repo_url function to accept keyword arguments and return the git_url. 2023-07-07 02:25:43 -04:00
Tasha Upchurch b3510c8c36 aider: Refactored validate_git_repo_url function to accept keyword arguments instead of specific parameters, and updated the example usage accordingly.
# Context:
USER: the paramaters for the function come from the return statement of def `INPUT_TYPES` in this case however please just use kwargs
2023-07-07 02:23:26 -04:00
Tasha Upchurch 1d1bc3797b aider: Renamed the function to "validate_git_repo_url" and added logic to check if the git URL is valid.
# Context:
USER: the function that will be called should verify that the url is a valid git repo, rename the function to something appropriet.
2023-07-07 02:21:15 -04:00
Tasha Upchurch d9c71bba38 aider: Added url and email inputs to the input types.
# Context:
USER: the input types should include only the url, and the email adress of the user
2023-07-07 02:20:11 -04:00
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 6f72f7ab60 Added new files to the git repo: git.py 2023-07-07 01:50:58 -04:00