MCPcopy Create free account

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

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

↓ 1 callersFunctionhandle_http_error
r"""Handles the HTTP errors based on the status code of the response. Args: response (requests.Response): The HTTP response from the API
Evopresent/camel/utils/commons.py:602
↓ 1 callersMethodhandle_image
Handles image tags (img).
Evopresent/docling/backend/html_backend.py:440
↓ 1 callersMethodhandle_list
Handles list tags (ul, ol) and their list items.
Evopresent/docling/backend/html_backend.py:231
↓ 1 callersMethodhandle_listitem
Handles listitem tags (li).
Evopresent/docling/backend/html_backend.py:253
↓ 1 callersMethodhandle_paragraph
Handles paragraph tags (p).
Evopresent/docling/backend/html_backend.py:221
↓ 1 callersMethodhandle_pictures
( self, docx_obj: DocxDocument, drawing_blip: Any, doc: DoclingDocument )
Evopresent/docling/backend/msword_backend.py:552
↓ 1 callersMethodhandle_pictures
(self, shape, parent_slide, slide_ind, doc, slide_size)
Evopresent/docling/backend/mspowerpoint_backend.py:280
↓ 1 callersMethodhandle_stream_response
r"""Process a stream response from the model and extract the necessary information. Args: response (dict): Model response
Evopresent/camel/agents/chat_agent.py:1290
↓ 1 callersMethodhandle_table
Handles table tags.
Evopresent/docling/backend/html_backend.py:307
↓ 1 callersMethodhandle_tables
( self, element: BaseOxmlElement, docx_obj: DocxDocument, doc: DoclingDocument
Evopresent/docling/backend/msword_backend.py:488
↓ 1 callersMethodhandle_tables
(self, shape, parent_slide, slide_ind, doc, slide_size)
Evopresent/docling/backend/mspowerpoint_backend.py:301
↓ 1 callersMethodhandle_text_elements
(self, shape, parent_slide, slide_ind, doc, slide_size)
Evopresent/docling/backend/mspowerpoint_backend.py:122
↓ 1 callersMethodidentify_instruction
r"""Determine if the given instruction is a classification task. Args: instruction (str): The instruction to classify. R
Evopresent/camel/datagen/self_instruct/self_instruct.py:182
↓ 1 callersMethodinference
(self, inputs, timesteps=20, seq_cfg_w=[1.0, 1.0], **kwargs)
video_generation/MegaTTS3/tts/modules/llm_dit/dit.py:127
↓ 1 callersMethodinit
r"""Initializes the database connection or structure.
Evopresent/camel/bots/discord/discord_store.py:28
↓ 1 callersMethodinit_agents
r"""Initialize assistant and user agents with their system messages. Args: init_assistant_sys_msg (BaseMessage): Assistant agent'
Evopresent/camel/societies/babyagi_playing.py:171
↓ 1 callersMethodinit_chat
r"""Initializes the chat by resetting both of the assistant and user agents. Returns an initial message for the role-playing session.
Evopresent/camel/societies/role_playing.py:440
↓ 1 callersMethodinit_specified_task_prompt
r"""Use a task specify agent to generate a specified task prompt. Generated specified task prompt will be used to replace original tas
Evopresent/camel/societies/babyagi_playing.py:128
↓ 1 callersMethodinitialize_weights
(self)
video_generation/models/float/FMT.py:230
↓ 1 callersMethodinject_mathjax_safe
Safely inject MathJax, with validation and fallback.
Evopresent/evopresent/ppt/stable_mathjax.py:73
↓ 1 callersFunctioninject_mathjax_stable
Stable MathJax injector replacing the legacy injector.
Evopresent/evopresent/ppt/stable_mathjax.py:334
↓ 1 callersFunctionis_docker_running
r"""Check if the Docker daemon is running. Returns: bool: True if the Docker daemon is running, False otherwise.
Evopresent/camel/utils/commons.py:521
↓ 1 callersFunctionis_image_path
(file: str)
Evopresent/utils/src/utils.py:33
↓ 1 callersFunctionis_module_available
r"""Check if a module is available for import. Args: module_name (str): The name of the module to check for availability. Returns:
Evopresent/camel/utils/commons.py:220
↓ 1 callersFunctionis_overlapping
Returns True if rectangles r1 and r2 overlap (strictly), False otherwise.
Evopresent/utils/wei_utils.py:754
↓ 1 callersFunctionis_primitive
(obj)
Evopresent/utils/src/utils.py:258
↓ 1 callersFunctionis_sil_phoneme
(p)
video_generation/MegaTTS3/tts/utils/text_utils/text_encoder.py:279
↓ 1 callersMethodis_terminated
(self, *args, **kwargs)
Evopresent/camel/terminators/base.py:28
↓ 1 callersMethodis_valid
(self)
Evopresent/docling/backend/html_backend.py:51
↓ 1 callersMethodis_valid
(self)
Evopresent/docling/backend/msword_backend.py:82
↓ 1 callersMethodis_valid
(self)
Evopresent/docling/backend/mspowerpoint_backend.py:67
↓ 1 callersMethodis_valid
(self)
Evopresent/docling/backend/msexcel_backend.py:74
↓ 1 callersMethodis_valid
(self)
Evopresent/docling/backend/md_backend.py:347
↓ 1 callersFunctionis_variables_node
(node)
Evopresent/evopresent/ppt/mathjax_utils.py:321
↓ 1 callersFunctionjson_to_function_code
r"""Generate a Python function code from a JSON schema. Args: json_obj (dict): The JSON schema object containing properties and
Evopresent/camel/utils/commons.py:401
↓ 1 callersMethodload
r"""Loads a file or DataFrame and returns a SmartDataframe object. args: data (Union[DataFrame, str]): The data to load.
Evopresent/camel/loaders/panda_reader.py:89
↓ 1 callersMethodload
r"""Load the APIBank Benchmark dataset. Args: level (str): Level to run benchmark on. force_download (bool, optional)
Evopresent/camel/benchmarks/apibank.py:122
↓ 1 callersMethodload
r"""Load the Nexus Benchmark dataset. Args: dataset_name (str): Name of the specific dataset to be loaded. force_down
Evopresent/camel/benchmarks/nexus.py:123
↓ 1 callersMethodload
r"""Load the APIBench Benchmark dataset. Args: dataset_name (str): Name of the specific dataset to be loaded. force_d
Evopresent/camel/benchmarks/apibench.py:185
↓ 1 callersFunctionload_classify_categories_prompt
Load the classify categories prompt from file.
train/eval.py:66
↓ 1 callersFunctionload_config
Load dataset configuration from a YAML file.
train/eval.py:858
↓ 1 callersFunctionload_env_file
(env_file='.env')
train/eval.py:53
↓ 1 callersMethodload_model
Load FLOAT model
video_generation/tts_face_generator.py:278
↓ 1 callersMethodload_page
(self, page_no: int)
Evopresent/docling/backend/pdf_backend.py:63
↓ 1 callersFunctionload_resource_mappings
(base_dir, paper_name, model_name_t=None)
Evopresent/evopresent/ppt/gen_pptx_code.py:172
↓ 1 callersMethodload_seed
r"""Load seed tasks from a file. Defaults to a predefined seed file if no path is provided. Args: path (str): Path to the
Evopresent/camel/datagen/self_instruct/self_instruct.py:85
↓ 1 callersMethodload_weight
Load model weights
video_generation/tts_face_generator.py:282
↓ 1 callersMethodlogits
(self, tokens, audio_features, kv_cache=None)
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:264
↓ 1 callersFunctionmain
(args)
Evopresent/evopresent/ppt/ppt_gen_pipeline.py:186
↓ 1 callersFunctionmain
()
video_generation/full_pipline.py:144
↓ 1 callersFunctionmain
Main function
video_generation/tts_face_generator.py:609
↓ 1 callersFunctionmain
Main function
video_generation/html_to_video_complete.py:462
↓ 1 callersFunctionmain
()
train/eval.py:865
↓ 1 callersFunctionmain
(script_args, training_args, model_args)
train/src/train_multi_task.py:846
↓ 1 callersFunctionmake_dur_prompt
(self, mel2ph_ref, ph_ref, tone_ref)
video_generation/MegaTTS3/tts/frontend_function.py:77
↓ 1 callersFunctionmake_kernel
(k)
video_generation/models/float/encoder.py:36
↓ 1 callersFunctionmake_pad_mask
Make mask tensor containing indices of padded part. Args: lengths (LongTensor or List): Batch of lengths (B,). xs (Tensor, optiona
video_generation/MegaTTS3/tts/modules/ar_dur/commons/seq_utils.py:112
↓ 1 callersFunctionmaybe_generate_visual_for_slide
(save_dir: Path, slide: Dict[str, Any], avg_width=None, avg_height=None)
Evopresent/evopresent/ppt/visualization_helper.py:178
↓ 1 callersFunctionmel2token_to_dur
(mel2token, T_txt=None, max_dur=None)
video_generation/MegaTTS3/tts/utils/audio_utils/align.py:17
↓ 1 callersMethodmerged_strategy
( self, hidden_states, mode="mean" )
video_generation/models/wav2vec2_ser.py:55
↓ 1 callersFunctionnormalize_prediction
Normalize prediction to one of: Slide A or Slide B (no Similar).
train/eval.py:87
↓ 1 callersMethodopenapi_spec_to_openai_schemas
r"""Convert OpenAPI specification to OpenAI schema format. This function iterates over the paths and operations defined in an OpenAPI
Evopresent/camel/toolkits/open_api_toolkit.py:73
↓ 1 callersMethodpage_count
(self)
Evopresent/docling/backend/pypdfium2_backend.py:248
↓ 1 callersMethodpage_count
(self)
Evopresent/docling/backend/pdf_backend.py:67
↓ 1 callersMethodpage_count
(self)
Evopresent/docling/backend/docling_parse_backend.py:212
↓ 1 callersMethodpage_count
(self)
Evopresent/docling/backend/docling_parse_v2_backend.py:227
↓ 1 callersFunctionparse_args
()
video_generation/full_pipline.py:17
↓ 1 callersFunctionparse_args
Parse command-line arguments
video_generation/tts_face_generator.py:571
↓ 1 callersMethodparse_bytes
r"""Parses a bytes stream and converts its contents into elements. Args: file (IO[bytes]): The file in bytes format to be parsed.
Evopresent/camel/loaders/unstructured_io.py:158
↓ 1 callersMethodparse_classification_output
r"""Parse the generated text for classification tasks into input-output pairs. Args: generated_text (str): The raw text g
Evopresent/camel/datagen/self_instruct/self_instruct.py:254
↓ 1 callersMethodparse_critic
r"""Parses the critic's message and extracts the choice. Args: critic_msg (BaseMessage): A `BaseMessage` object representing the
Evopresent/camel/agents/critic_agent.py:151
↓ 1 callersFunctionparse_groupshape
(groupshape: GroupShape)
Evopresent/utils/src/utils.py:223
↓ 1 callersMethodparse_input
r"""Parses the user's input and returns a `BaseMessage` object. Args: human_input (str): The user's input. Returns:
Evopresent/camel/human.py:97
↓ 1 callersMethodparse_non_classification_output
r"""Parse the generated text for non-classification tasks into input-output pairs. Args: generated_text (str): The raw te
Evopresent/camel/datagen/self_instruct/self_instruct.py:304
↓ 1 callersMethodparse_openapi_file
r"""Load and parse an OpenAPI specification file. This function utilizes the `prance.ResolvingParser` to parse and resolve the given
Evopresent/camel/toolkits/open_api_toolkit.py:33
↓ 1 callersFunctionparse_pdf
Parse a PDF file and extract text and images. Args: pdf_path (str): The path to the PDF file. output_path (str): The directo
Evopresent/utils/src/model_utils.py:97
↓ 1 callersFunctionparse_raw
Parse raw content from PDF for presentation generation
Evopresent/evopresent/ppt/parse_raw.py:220
↓ 1 callersMethodperform_sentiment_analysis
r"""Performs sentiment analysis on the comments collected from Reddit posts. Args: data (List[Dict[str, Any]]): A list of
Evopresent/camel/toolkits/reddit_toolkit.py:135
↓ 1 callersMethodpost_dependency
r"""Post a dependency to the channel. A dependency is a task that is archived, and will be referenced by other tasks.
Evopresent/camel/societies/workforce/task_channel.py:127
↓ 1 callersMethodpost_task
r"""Send a task to the channel with specified publisher and assignee, along with the dependency of the task.
Evopresent/camel/societies/workforce/task_channel.py:116
↓ 1 callersMethodpostprocess
Main processing pipeline.
Evopresent/docling/utils/layout_postprocessor.py:220
↓ 1 callersFunctionppt_to_images
(file: str, output_dir: str, warning: bool = False, dpi=72, output_type='png')
Evopresent/utils/src/utils.py:140
↓ 1 callersFunctionprecompute_freqs_cis
(dim: int, end: int, theta: float = 10000.0)
video_generation/MegaTTS3/tts/modules/llm_dit/transformer.py:23
↓ 1 callersMethodpredict_emotion
(self, a: torch.Tensor, prev_a: torch.Tensor = None)
video_generation/models/float/FLOAT.py:246
↓ 1 callersMethodprepare_element
( self, conv_res: ConversionResult, element: NodeItem )
Evopresent/docling/models/base_model.py:46
↓ 1 callersFunctionprepare_inputs_for_dit
(self, mel2ph_ref, mel2ph_pred, ph_ref, tone_ref, ph_pred, tone_pred, vae_latent)
video_generation/MegaTTS3/tts/frontend_function.py:154
↓ 1 callersMethodpreprocess
Preprocess face image and audio
video_generation/tts_face_generator.py:245
↓ 1 callersFunctionpreprocess_input
r"""Remove formatting like code blocks and whitespace.
Evopresent/camel/benchmarks/nexus.py:429
↓ 1 callersMethodprev_indent
(self)
Evopresent/docling/backend/msword_backend.py:148
↓ 1 callersMethodprocess
r"""Processes content from a file or URL, divides it into chunks by using `Unstructured IO`,then stored internally. This method must be
Evopresent/camel/retrievers/bm25_retriever.py:53
↓ 1 callersMethodprocess
r"""Processes content from local file path, remote URL, string content, Element object, or a binary file object, divides it into chunk
Evopresent/camel/retrievers/vector_retriever.py:72
↓ 1 callersMethodprocess_compare
Process a single comparison test sample: call API and calculate metrics.
train/eval.py:493
↓ 1 callersMethodprocess_deficiency
Process a single deficiency test sample: call API, classify deficiencies, and calculate metrics.
train/eval.py:271
↓ 1 callersMethodprocess_img
Process face image
video_generation/tts_face_generator.py:214
↓ 1 callersMethodprocess_score
Process a single score test sample: call API, extract score, and calculate metrics.
train/eval.py:360
↓ 1 callersMethodprocess_single
Process a single test sample based on task type.
train/eval.py:584
↓ 1 callersMethodprocess_slide_content
(self, slide_data: Dict[str, Any], force: bool = False)
Evopresent/evopresent/ppt/visualization_helper.py:91
↓ 1 callersFunctionprocess_task
Process a single task with given test data.
train/eval.py:818
↓ 1 callersFunctionpt_to_emu
(points: float)
Evopresent/utils/wei_utils.py:369
↓ 1 callersMethodqkv_attention
( self, q: Tensor, k: Tensor, v: Tensor, mask: Optional[Tensor] = None, casual: Optional[bool] = None
video_generation/MegaTTS3/tts/modules/aligner/whisper_small.py:118
← previousnext →901–1,000 of 2,738, ranked by callers