MCPcopy Create free account

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

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

↓ 2 callersMethodbuild
r"""Build the Docker container and start it. Args: time_out (int): The number of seconds to wait for the container to
Evopresent/camel/runtime/docker_runtime.py:168
↓ 2 callersFunctioncheck_length
(text, target, width, height)
Evopresent/utils/wei_utils.py:1254
↓ 2 callersMethodchunk_elements
r"""Chunks elements by titles. Args: elements (List[Element]): List of Element objects to be chunked. chunk_type (str
Evopresent/camel/loaders/unstructured_io.py:444
↓ 2 callersFunctionchunk_text_english
Splits the input text into chunks, each with a maximum number of characters. Args: text (str): The text to be split. max_cha
video_generation/MegaTTS3/tts/utils/text_utils/split_text.py:55
↓ 2 callersMethodclear
r"""Removes all records from the key-value storage system.
Evopresent/camel/storages/key_value_storages/json.py:94
↓ 2 callersMethodclear
(self)
Evopresent/camel/memories/agent_memories.py:60
↓ 2 callersMethodclear_state
r"""Initialize :obj:`state` and :obj:`fuzz_state`.
Evopresent/camel/interpreters/internal_python_interpreter.py:230
↓ 2 callersFunctioncombine_html_slides
(presentation_dir: str, output_path: str)
Evopresent/evopresent/ppt/combine_slides.py:7
↓ 2 callersMethodcompute_sigma_t
Compute the standard deviation of the probability path N(t * x1 + (1 - t) * x0, sigma), see (Eq.14) [1]. Parameters --------
video_generation/MegaTTS3/tts/modules/llm_dit/cfm.py:115
↓ 2 callersMethodconstruct_examples
r"""Construct training examples from raw data. Args: raw_data (List[Dict[str, Any]]): List of raw data dictionaries
Evopresent/camel/datagen/source2synth/data_processor.py:159
↓ 2 callersFunctionconv3x3
(in_planes, out_planes, stride=1)
video_generation/models/__init__.py:175
↓ 2 callersMethodconvert_all
( self, source: Iterable[Union[Path, str, DocumentStream]], # TODO review naming head
Evopresent/docling/document_converter.py:206
↓ 2 callersFunctioncreate_file_hash
Create a stable page_hash of the path_or_stream of a file
Evopresent/docling/utils/utils.py:19
↓ 2 callersMethodcurate_dataset
r"""Manage and curate a dataset through multiple filtering stages. Args: examples (List[Dict[str, Any]]): List of examples to cur
Evopresent/camel/datagen/source2synth/data_processor.py:384
↓ 2 callersMethoddelete_entity
r"""Deletes an entity (vertex) from the graph. Args: entity_id (str): The identifier of the entity to be deleted.
Evopresent/camel/storages/graph_storages/nebula_graph.py:517
↓ 2 callersMethoddownload
r"""Download the GAIA dataset.
Evopresent/camel/benchmarks/gaia.py:150
↓ 2 callersFunctiondownload_github_subdirectory
r"""Download subdirectory of the Github repo of the benchmark. This function downloads all files and subdirectories from a specified subd
Evopresent/camel/utils/commons.py:652
↓ 2 callersFunctiondownload_models
( output_dir: Optional[Path] = None, *, force: bool = False, progress: bool = False, with_
Evopresent/docling/utils/model_downloader.py:17
↓ 2 callersFunctiondraw_clusters
Draw clusters on an image
Evopresent/docling/utils/visualization.py:8
↓ 2 callersMethoddraw_clusters_and_cells_side_by_side
Draws a page image side by side with clusters filtered into two categories: - Left: Clusters excluding FORM, KEY_VALUE_REGION, and PI
Evopresent/docling/models/layout_model.py:98
↓ 2 callersMethodembed_list
r"""Generates embeddings for the given texts. Args: objs (list[T]): The objects for which to generate the embeddings.
Evopresent/camel/embeddings/base.py:26
↓ 2 callersMethodencode
(self, audio)
video_generation/MegaTTS3/tts/modules/wavvae/decoder/wavvae_v3.py:46
↓ 2 callersMethodenrich_slide_knowledge
(self, *, paper_markdown: str, slide: Dict[str, Any], max_snippets: int = 3)
Evopresent/evopresent/ppt/scholar_agent.py:105
↓ 2 callersMethodeos
(self)
video_generation/MegaTTS3/tts/utils/text_utils/text_encoder.py:248
↓ 2 callersFunctionestimate_characters
Estimate the number of characters that can fit into a bounding box. :param width_in_inches: The width of the bounding box, in inches. :
Evopresent/utils/wei_utils.py:1061
↓ 2 callersFunctionevaluate_arg
r"""Recursively evaluate arguments, including nested calls.
Evopresent/camel/benchmarks/nexus.py:435
↓ 2 callersMethodexecute
r"""Execute the input python codes in a security environment. Args: code (str): Generated python code to be executed.
Evopresent/camel/interpreters/internal_python_interpreter.py:158
↓ 2 callersFunctionextract_equations
Extract equations from text content and images. Returns a dictionary of equations with their context and images.
Evopresent/evopresent/ppt/parse_raw.py:98
↓ 2 callersFunctionextract_layout_async
Extract positions/sizes of text and image elements from an HTML file/URL. Returns a dict containing canvas size, meta, items, and relationshi
Evopresent/evopresent/ppt/layout_extractor.py:207
↓ 2 callersFunctionextract_text_from_pdf
Extracts and preprocesses text content from a PDF. If raw_result is provided, reuse it to avoid re-conversion.
Evopresent/evopresent/ppt/parse_raw.py:189
↓ 2 callersMethodfilter
r"""Check if the given instruction passes all filter functions. Args: prompt (str): The prompt of generating the instruction.
Evopresent/camel/datagen/self_instruct/filter/instruction_filter.py:56
↓ 2 callersFunctionfind_generated_files
Find generated TTS and face video files, prioritize audio/ and face/ subdirectories, fallback to old paths
video_generation/html_to_video_complete.py:334
↓ 2 callersMethodforward
(self, x)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/layers.py:46
↓ 2 callersMethodforward
Forward pass of ConditionalFlowMatchingTransformer. t: (B,) tensor of diffusion timesteps [0, 1] x: (B, L, 512) : tensor of sequence of motion
video_generation/models/float/FMT.py:268
↓ 2 callersMethodforward_ling_encoder
(self, txt_tokens, tone_tokens)
video_generation/MegaTTS3/tts/modules/llm_dit/dit.py:101
↓ 2 callersMethodframewise_modulate
(self, x, shift, scale)
video_generation/models/float/FMT.py:162
↓ 2 callersMethodfrom_bytes
r"""Creates a File object from a BytesIO object. Args: file (BytesIO): A BytesIO object representing the contents of the
Evopresent/camel/loaders/base_io.py:96
↓ 2 callersMethodfrom_dicts
r"""Generates a list of system messages from a list of dictionaries. Args: meta_dicts (List[Dict[str, str]]): A list of dictionar
Evopresent/camel/generators.py:125
↓ 2 callersMethodfrom_string
r"""Creates an AlpacaItem from a formatted string. Args: text: String in either of these formats: With input:
Evopresent/camel/messages/conversion/alpaca.py:54
↓ 2 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
video_generation/models/float/styledecoder.py:8
↓ 2 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
video_generation/models/float/encoder.py:8
↓ 2 callersFunctiongenerate_layout_html
(slide_data, image_info, client, slide_style, extra_guidance=None)
Evopresent/evopresent/ppt/gen_pptx_code.py:364
↓ 2 callersFunctiongenerate_presentation
(outline_path, output_path, base_dir=None, paper_name=None, model_name_t=None, style=None, use_checker=True, c
Evopresent/evopresent/ppt/gen_pptx_code.py:1067
↓ 2 callersFunctiongenerate_tts_and_face_videos
Generate TTS audio and face videos Args: script_json: Script JSON file path ref_face: Reference face image path
video_generation/tts_face_generator.py:360
↓ 2 callersFunctionget_agent_config
(model_type)
Evopresent/utils/wei_utils.py:25
↓ 2 callersMethodget_api_description
(self, api_name)
Evopresent/camel/benchmarks/apibank.py:482
↓ 2 callersMethodget_embedding
Build sinusoidal embeddings. This matches the implementation in tensor2tensor, but differs slightly from the description in Section 3
video_generation/MegaTTS3/tts/modules/ar_dur/commons/rot_transformer.py:47
↓ 2 callersMethodget_embedding
Build sinusoidal embeddings. This matches the implementation in tensor2tensor, but differs slightly from the description in Section 3
video_generation/MegaTTS3/tts/modules/ar_dur/commons/transformer.py:45
↓ 2 callersFunctionget_font_style
(font: dict)
Evopresent/utils/src/utils.py:44
↓ 2 callersMethodget_generate_tasks_prompt
r"""Gets the prompt for generating tasks for a given task type. Args: task_type (TaskType): The type of the task. Return
Evopresent/camel/prompts/prompt_templates.py:97
↓ 2 callersFunctionget_img_ratio
(img_path)
Evopresent/utils/wei_utils.py:1290
↓ 2 callersMethodget_info
r"""Returns a dictionary containing information about the chat session. Args: session_id (str, optional): The ID of the chat sess
Evopresent/camel/agents/chat_agent.py:486
↓ 2 callersFunctionget_last_checkpoint
(work_dir, steps=None)
video_generation/MegaTTS3/tts/utils/commons/ckpt_utils.py:54
↓ 2 callersMethodget_last_text_item
Get the last text item at the current document level. Returns: The text item or None, if the current level parent has no children
Evopresent/docling/backend/xml/uspto_backend.py:898
↓ 2 callersFunctionget_model_encoding
r"""Get model encoding from tiktoken. Args: value_for_tiktoken: Model value for tiktoken. Returns: tiktoken.Encoding: Model
Evopresent/camel/utils/token_counting.py:51
↓ 2 callersMethodget_node_properties
r"""Retrieve node properties from the graph. Returns: Tuple[List[str], List[Dict[str, Any]]]: A tuple where the first
Evopresent/camel/storages/graph_storages/nebula_graph.py:553
↓ 2 callersFunctionget_plain_text_from_rich_text
r"""Extracts plain text from a list of rich text elements. Args: rich_text: A list of dictionaries representing rich text elements.
Evopresent/camel/toolkits/notion_toolkit.py:21
↓ 2 callersFunctionget_project_root
Get the project root directory
Evopresent/evopresent/ppt/ppt_gen_pipeline.py:15
↓ 2 callersFunctionget_pydantic_object_schema
r"""Get the JSON schema of a Pydantic model. Args: pydantic_params (Type[BaseModel]): The Pydantic model class to retrieve th
Evopresent/camel/utils/commons.py:372
↓ 2 callersMethodget_relationship_properties
r"""Retrieve relationship (edge) properties from the graph. Returns: Tuple[List[str], List[Dict[str, Any]]]: A tuple where the fi
Evopresent/camel/storages/graph_storages/nebula_graph.py:583
↓ 2 callersMethodget_relationship_types
r"""Retrieve relationship types from the graph. Returns: List[str]: A list of relationship (edge) type names.
Evopresent/camel/storages/graph_storages/nebula_graph.py:158
↓ 2 callersFunctionget_task_list
r"""Parse the response of the Agent and return task list. Args: task_response (str): The string response of the Agent. Returns:
Evopresent/camel/utils/commons.py:135
↓ 2 callersMethodhandle_text_elements
( self, element: BaseOxmlElement, docx_obj: DocxDocument, doc: DoclingDocument
Evopresent/docling/backend/msword_backend.py:263
↓ 2 callersFunctionimage_to_base64_uri
Loads an image, resizes it to a maximum width while preserving the aspect ratio, and encodes it as a Base64 data URI.
train/eval.py:158
↓ 2 callersMethodinfer
(self, txt_tokens, ling_feas, char_tokens, ph2char, bert_embed, spk_id=None, spk_embed=None, mel
video_generation/MegaTTS3/tts/modules/ar_dur/ar_dur_predictor.py:265
↓ 2 callersMethodinference
( self, data: dict, a_cfg_scale = None, r_cfg_scale = None, e_cfg_scale = None, emo = None, nf
video_generation/models/float/FLOAT.py:147
↓ 2 callersMethodinitialize
(self, parser)
video_generation/options/base_options.py:10
↓ 2 callersFunctioninject_mathjax_and_group_equations
(html_content, slide_data=None, config=None)
Evopresent/evopresent/ppt/mathjax_utils.py:13
↓ 2 callersMethodis_processable
(self, doc: DoclingDocument, element: NodeItem)
Evopresent/docling/models/base_model.py:28
↓ 2 callersFunctionlinear_interpolation
Transpose the features to interpolate linearly. Args: features (torch.Tensor): The extracted features to be interpolated. se
video_generation/models/wav2vec2.py:181
↓ 2 callersFunctionload_config
(config_fn, config_chains, loaded_configs)
video_generation/MegaTTS3/tts/utils/commons/hparams.py:76
↓ 2 callersFunctionmake_positions
Replace non-padding symbols with their position numbers. Position numbers begin at padding_idx+1. Padding symbols are ignored.
video_generation/MegaTTS3/tts/modules/ar_dur/commons/seq_utils.py:20
↓ 2 callersFunctionmap_tesseract_script
r"""
Evopresent/docling/utils/ocr_utils.py:1
↓ 2 callersFunctionmerge_dict
(d1: dict, d2: list[dict])
Evopresent/utils/src/utils.py:291
↓ 2 callersMethodnormalize_number_str
(self, number_str: str)
Evopresent/camel/benchmarks/gaia.py:420
↓ 2 callersFunctionoverride_config
(old_config: dict, new_config: dict)
video_generation/MegaTTS3/tts/utils/commons/hparams.py:32
↓ 2 callersFunctionpad1d
(x: torch.Tensor, paddings: tp.Tuple[int, int], mode: str = 'zero', value: float = 0.)
video_generation/MegaTTS3/tts/modules/wavvae/encoder/common_modules/conv.py:79
↓ 2 callersMethodparse_file_or_url
r"""Loads a file or a URL and parses its contents into elements. Args: input_path (str): Path to the file or URL to be parsed.
Evopresent/camel/loaders/unstructured_io.py:96
↓ 2 callersFunctionprint_results
Print results summary for a specific task.
train/eval.py:762
↓ 2 callersFunctionprocess_html_folder
处理整个HTML文件夹
video_generation/html_to_video_complete.py:354
↓ 2 callersFunctionprocess_messages
Processes chat history into a structured format for further use. Args: chat_history (List[Dict[str, Any]): A list of dic
Evopresent/camel/benchmarks/apibank.py:41
↓ 2 callersMethodremove_task
r"""Remove a task from the channel.
Evopresent/camel/societies/workforce/task_channel.py:155
↓ 2 callersFunctionrender_html_to_image
(html_content, slide_title, try_index=None, wait_for_animations=True, output_dir_name="critique_screenshots")
Evopresent/evopresent/ppt/gen_pptx_code.py:249
↓ 2 callersFunctionresolve_provider_and_create_client
(selector: str, default_provider: str)
Evopresent/evopresent/ppt/gen_pptx_code.py:113
↓ 2 callersMethodsample
(self, generator=None)
video_generation/MegaTTS3/tts/modules/wavvae/decoder/diag_gaussian.py:31
↓ 2 callersMethodsample_one_step
(self, vq_pred)
video_generation/MegaTTS3/tts/modules/ar_dur/ar_dur_predictor.py:130
↓ 2 callersMethodsave
r"""Saves or updates a Discord installation record.
Evopresent/camel/bots/discord/discord_store.py:32
↓ 2 callersFunctionsave_wav
(wav_bytes, path)
video_generation/MegaTTS3/tts/utils/audio_utils/io.py:39
↓ 2 callersMethodsequence_mask
(self, seq_lens, max_len=None, device='cpu')
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:311
↓ 2 callersMethodset_channel
r"""Set the channel for the node and all the child nodes under it.
Evopresent/camel/societies/workforce/workforce.py:240
↓ 2 callersMethodset_rundir
(self, rundir: str)
Evopresent/utils/src/utils.py:327
↓ 2 callersMethodset_state
r"""Recursively set the state of the task and its subtasks. Args: state (TaskState): The giving state.
Evopresent/camel/tasks/task.py:140
↓ 2 callersFunctionsetup_logging
Setup logging
video_generation/html_to_video_complete.py:18
↓ 2 callersFunctionsoftmax
(x, dim)
video_generation/MegaTTS3/tts/modules/ar_dur/commons/seq_utils.py:35
↓ 2 callersMethodsplit_string
r"""Split a string based on a list of characters. Args: s (str): The string to split. char_list (Optional[List[str]],
Evopresent/camel/benchmarks/gaia.py:431
↓ 2 callersMethodstart
r"""Start itself and all the child nodes under it.
Evopresent/camel/societies/workforce/workforce.py:470
↓ 2 callersMethodstd
(self)
Evopresent/docling/utils/profiling.py:29
↓ 2 callersMethodstop
r"""stop the Docker container. Args: remove (Optional[bool]): Whether to remove the container after stopping it.
Evopresent/camel/runtime/docker_runtime.py:328
↓ 2 callersMethodstore_content
Store the key value within a document section in the docling document. Args: section: A patent section name. field: A
Evopresent/docling/backend/xml/uspto_backend.py:945
↓ 2 callersMethodto_dict
r"""Convert the :obj:`MemoryRecord` to a dict for serialization purposes.
Evopresent/camel/memories/records.py:72
← previousnext →301–400 of 2,738, ranked by callers