MCPcopy Create free account

hub / github.com/UCSB-AI/EvoPresent / functions

Functions2,738 in github.com/UCSB-AI/EvoPresent

Methoddelete_slack_message
r"""Delete a message to a Slack channel. Args: time_stamp (str): Timestamp of the message to be deleted. channel_id (
Evopresent/camel/toolkits/slack_toolkit.py:260
Methoddelete_triplet
r"""Deletes a specific triplet (relationship between two entities) from the Nebula Graph database. Args: subj (str): The
Evopresent/camel/storages/graph_storages/nebula_graph.py:500
Methoddelete_triplet
r"""Deletes a specific triplet from the graph, comprising a subject, object and relationship. Args: subj (str): The ident
Evopresent/camel/storages/graph_storages/base.py:57
Methoddelete_triplet
r"""Deletes a specific triplet from the graph, comprising a subject, object and relationship. Args: subj (str): The ident
Evopresent/camel/storages/graph_storages/neo4j_graph.py:422
Functiondelete_tweet
r"""Deletes a tweet with the specified ID for an authorized user. This function sends a DELETE request to the Twitter API to delete a tweet w
Evopresent/camel/toolkits/twitter_toolkit.py:144
Functiondependencies_required
r"""A decorator to ensure that specified Python modules are available before a function executes. Args: required_modules (str): The r
Evopresent/camel/utils/commons.py:180
Functiondisable_logging
r"""Disable all logging for the CAMEL library. This function sets the log level to a value higher than CRITICAL, effectively disabling all lo
Evopresent/camel/logger.py:45
Functiondisable_sdpa
()
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:75
Methoddivide
r"""Divides two numbers. Args: a (float): The dividend in the division. b (float): The divisor in the division.
Evopresent/camel/toolkits/math_toolkit.py:66
Methoddocs
r"""Get the URL for the API documentation. Returns: str: The URL for the API documentation.
Evopresent/camel/runtime/remote_http_runtime.py:198
Methoddocs
r"""Get the URL for the API documentation. Returns: str: The URL for the API documentation.
Evopresent/camel/runtime/docker_runtime.py:398
Functiondownload
( output_dir: Annotated[ Path, typer.Option( ..., "-o",
Evopresent/docling/cli/models.py:39
Methoddownload_file
r"""Download a file from the object storage to the local system. Args: local_file_path (Path): The path to the local file to be s
Evopresent/camel/storages/object_storages/base.py:79
Methoddownload_models
( detection_models: List[str] = ["craft"], recognition_models: List[str] = ["english_g2", "lat
Evopresent/docling/models/easyocr_model.py:86
Methoddownload_models_hf
( local_dir: Optional[Path] = None, force: bool = False )
Evopresent/docling/pipeline/standard_pdf_pipeline.py:144
Methoddownload_papers
r"""Downloads PDFs of academic papers from arXiv based on the provided query. Args: query (str): The search query string.
Evopresent/camel/toolkits/arxiv_toolkit.py:126
Functiondownload_tasks
r"""Downloads task-related files from a specified URL and extracts them. This function downloads a zip file containing tasks based on the specifi
Evopresent/camel/utils/commons.py:102
Methoddraw_clusters_and_cells
()
Evopresent/docling/backend/pypdfium2_backend.py:170
Methoddraw_clusters_and_cells
()
Evopresent/docling/backend/docling_parse_backend.py:109
Methoddraw_clusters_and_cells
()
Evopresent/docling/backend/docling_parse_v2_backend.py:123
Methoddraw_clusters_and_cells
(ds_document, page_no, show: bool = False)
Evopresent/docling/models/ds_glm_model.py:327
Methoddraw_text_boxes
(image, cells, show: bool = False)
Evopresent/docling/models/page_preprocessing_model.py:59
Functiondynamic_function
(data: Dict, func=func)
Evopresent/camel/runtime/api.py:73
Functionedit_code
(agent, prompt, num_retries, existing_code='')
Evopresent/utils/wei_utils.py:498
Functionedit_modular
( agent, edit_section_name, feedback, all_code, file_name,
Evopresent/utils/wei_utils.py:278
Functionedit_textbox
Edit properties of an existing textbox shape. :param shape: The shape object (textbox) to edit. :param text: New text to set. If None, l
Evopresent/utils/pptx_utils.py:1481
Methodembed_list
r"""Generates embeddings for the given texts using the model. Args: objs (list[str]): The texts for which to generate the
Evopresent/camel/embeddings/sentence_transformers_embeddings.py:49
Methodembed_list
r"""Generates embeddings for the given texts. Args: objs (list[str]): The texts for which to generate the embeddings.
Evopresent/camel/embeddings/openai_embedding.py:66
Methodembed_list
Generates embeddings for the given images or texts. Args: objs (List[Image.Image|str]): The list of images or texts for
Evopresent/camel/embeddings/vlm_embedding.py:70
Methodembed_list
r"""Generates embeddings for the given texts. Args: objs (list[str]): The texts for which to generate the embeddings.
Evopresent/camel/embeddings/openai_compatible_embedding.py:61
Methodembed_list
r"""Generates embeddings for the given texts. Args: objs (list[str]): The texts for which to generate the embeddings.
Evopresent/camel/embeddings/mistral_embedding.py:64
Methodembed_list
r"""Generates embeddings for the given texts or images. Args: objs (list[Union[str, Image.Image]]): The texts or images for which
Evopresent/camel/embeddings/jina_embedding.py:81
Functionenable_logging
r"""Enable logging for the CAMEL library. This function re-enables logging if it was previously disabled, and configures the library logging
Evopresent/camel/logger.py:63
Methodenc_app
(self, x)
video_generation/models/float/encoder.py:254
Methodenc_motion
(self, x)
video_generation/models/float/encoder.py:260
Methodencode
Converts a space-separated string of tokens to a list of ids.
video_generation/MegaTTS3/tts/utils/text_utils/text_encoder.py:161
MethodendElement
Signal the end of an element. Args: tag: The element tag.
Evopresent/docling/backend/xml/uspto_backend.py:318
MethodendElement
Signal the end of an element. Args: tag: The element tag.
Evopresent/docling/backend/xml/uspto_backend.py:653
MethodendElement
Signal the end of an element. Args: tag: The element tag.
Evopresent/docling/backend/xml/uspto_backend.py:1214
Methodevaluate
r"""Evaluate the messages using the Skywork model. Args: messages (List[Dict[str, str]]): A list of messages. Returns:
Evopresent/camel/models/reward/skywork_model.py:64
Methodevaluate
r"""Evaluate the messages and return scores based on different criteria. Args: messages (List[Dict[str, str]]): A list of
Evopresent/camel/models/reward/base_reward_model.py:38
Methodevaluate
r"""Evaluate the messages using the Nemotron model. Args: messages (List[Dict[str, str]]): A list of messages where each
Evopresent/camel/models/reward/nemotron_model.py:61
Methodevolve
r"""Evolve a task to a new task. Evolve is only used for data generation. Args: task (Task): A given task.
Evopresent/camel/tasks/task.py:395
Methodexchange_code_for_token_response
r"""Exchange the authorization code for an access token. Args: code (str): The authorization code received from Discord after
Evopresent/camel/bots/discord/discord_app.py:140
Methodexecute_code
r"""Execute a given code snippet. Args: code (str): The input code to the Code Interpreter tool call. Returns:
Evopresent/camel/toolkits/code_execution.py:95
Functionexpand_by_repeat_times
source_encoding: [T, C] lengths, list of int, [T,], how many times each token should repeat return: expanded_encoding: [T_expand,
video_generation/MegaTTS3/tts/modules/ar_dur/commons/seq_utils.py:321
Functionexpand_word2ph
(word_encoding, ph2word)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/seq_utils.py:338
Methodexport_solutions
r"""Export the solution process and results to a JSON file. Exports the solution tree, golden answers, and export timestamp to a JSON
Evopresent/camel/datagen/cotdatagen.py:420
Methodextract_data_from_text
r"""Extracts various types of data from text using functions from unstructured.cleaners.extract. Args: text (str): Text t
Evopresent/camel/loaders/unstructured_io.py:294
Methodextract_tool_calls
r"""Extract function call info from a message string
Evopresent/camel/messages/conversion/sharegpt/function_call_formatter.py:30
Methodextract_tool_response
r"""Extract function response info from a message string
Evopresent/camel/messages/conversion/sharegpt/function_call_formatter.py:35
Methodfeature_extract
Extracts features from the input values and returns the extracted features. Parameters: input_values (torch.Tensor): The inp
video_generation/models/wav2vec2.py:97
Methodfields_type_checking
r"""Validate the type of tools in the configuration. This method ensures that the tools provided in the configuration are instances o
Evopresent/camel/configs/base_config.py:46
Methodfields_type_checking
(cls, response_format)
Evopresent/camel/configs/mistral_config.py:67
Functionfill_textframe
Given an existing shape (with a text frame) and a paragraphs_spec describing paragraphs and runs, populate the shape's text frame. 'para
Evopresent/utils/pptx_utils.py:1375
Functionfill_with_neg_inf
FP16-compatible function that fills a tensor with -inf.
video_generation/MegaTTS3/tts/modules/ar_dur/commons/seq_utils.py:84
Functionfill_with_neg_inf2
FP16-compatible function that fills a tensor with -inf.
video_generation/MegaTTS3/tts/modules/ar_dur/commons/seq_utils.py:89
Methodfilter_data
r"""Filter messages based on the scores. Args: messages (List[Dict[str, str]]): A list of messages where each mes
Evopresent/camel/models/reward/evaluator.py:43
Methodfind_by_guild
r"""Finds an installation record by guild ID. Args: guild_id (str): The guild ID to search for. Returns: Opt
Evopresent/camel/bots/discord/discord_store.py:115
Methodfind_ocr_rects
(size, bitmap_rects)
Evopresent/docling/models/base_ocr_model.py:32
Functionformat_reward
(completions, solution, task, **kwargs)
train/src/train_multi_task.py:739
Methodformat_tool_call
r"""Format a function call into a message string
Evopresent/camel/messages/conversion/sharegpt/function_call_formatter.py:40
Methodformat_tool_response
r"""Format a function response into a message string
Evopresent/camel/messages/conversion/sharegpt/function_call_formatter.py:47
Methodforward
(self, x: Tensor)
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:43
Methodforward
( self, x: Tensor, xa: Optional[Tensor] = None, mask: Optional[Tensor] = None,
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:95
Methodforward
( self, x: Tensor, xa: Optional[Tensor] = None, mask: Optional[Tensor] = None,
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:152
Methodforward
x : torch.Tensor, shape = (batch_size, n_mels, n_ctx) the mel spectrogram of the audio
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:182
Methodforward
x : torch.LongTensor, shape = (batch_size, <= n_ctx) the text tokens xa : torch.Tensor, shape = (batch_size, n_audio_ctx,
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:220
Methodforward
( self, mel, mel_len, token, token_len )
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:267
Methodforward
(self, x, scale=1000)
video_generation/MegaTTS3/tts/modules/llm_dit/time_embedding.py:25
Methodforward
(self, timestep)
video_generation/MegaTTS3/tts/modules/llm_dit/time_embedding.py:40
Methodforward
(self, x, emb=None)
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:59
Methodforward
(self, x, emb)
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:73
Methodforward
( self, x: torch.Tensor, start_pos: int, freqs_cis: torch.Tens
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:107
Methodforward
(self, x)
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:150
Methodforward
Perform a forward pass through the TransformerBlock. Args: x (torch.Tensor): Input tensor. start_pos (int):
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:170
Methodforward
(self, x, t, attn_mask, start_pos=0)
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:224
Methodforward
(self, inputs, sigmas=None, x_noisy=None)
video_generation/MegaTTS3/tts/modules/llm_dit/dit.py:70
Methodforward
(self, txt_tokens, ling_feas, char_tokens, ph2char, bert_embed, prev_code, spk_id=None, spk_em
video_generation/MegaTTS3/tts/modules/ar_dur/ar_dur_predictor.py:190
Methodforward
Apply layer normalization. :param torch.Tensor x: input tensor :return: layer normalized tensor :rtype torch.Tensor
video_generation/MegaTTS3/tts/modules/ar_dur/commons/layers.py:30
Methodforward
(self, x)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/layers.py:55
Methodforward
Input is expected to be of size [bsz x seqlen].
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:65
Methodforward
Apply rotary embeddings to an array. :param input: Array to apply the rotary embeddings to. :param positions: positions of t
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:164
Methodforward
Input shape: Time x Batch x Channel Args: key_padding_mask (ByteTensor, optional): mask to exclude keys that are
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:215
Methodforward
Input shape: Time x Batch x Channel Args: key_padding_mask (ByteTensor, optional): mask to exclude keys that are
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:413
Methodforward
( self, x, encoder_out=None, encoder_padding_mask=None,
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:559
Methodforward
(self, x, **kwargs)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:642
Methodforward
(self, x, x_mask, attn_mask=1)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:71
Methodforward
(self, x, c, attn_mask=None)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:135
Methodforward
(self, x, x_mask)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:268
Methodforward
(self, x)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:288
Methodforward
(self, x, x_mask)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:325
Methodforward
(self, x, x_mask=None, other_embeds=0, attn_mask=1)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rel_transformer.py:387
Methodforward
Example (no batch dim version): 1. dur = [2,2,3] 2. token_idx = [[1],[2],[3]], dur_cumsum = [2,4,7], dur_cumsum_prev
video_generation/MegaTTS3/tts/modules/ar_dur/commons/nar_tts_modules.py:28
Methodforward
(self, x)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/nar_tts_modules.py:70
Methodforward
Input is expected to be of size [bsz x seqlen].
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:63
Methodforward
(self, x, incremental_state=None)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:105
Methodforward
Input shape: Time x Batch x Channel Args: key_padding_mask (ByteTensor, optional): mask to exclude keys that are
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:218
Methodforward
(self, x, encoder_padding_mask=None, **kwargs)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:516
Methodforward
( self, x, encoder_out=None, encoder_padding_mask=None,
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:562
← previousnext →1,801–1,900 of 2,738, ranked by callers