Mezura / helpers_modular.py
nmmursit's picture
initial commit
3232d64 verified
raw
history blame contribute delete
693 Bytes
import gradio as gr
import logging
# Import common utilities
from pipelines.utils.common import (
set_ui_component,
get_ui_component,
set_evaluation_type,
get_evaluation_type,
update_evaluation_params,
search_and_filter
)
# Import API utilities
from pipelines.utils.api import (
update_status,
fetch_logs,
fetch_results
)
# Set up logger
logger = logging.getLogger(__name__)
# Set functions to make available to the app
__all__ = [
"set_ui_component",
"get_ui_component",
"set_evaluation_type",
"get_evaluation_type",
"update_evaluation_params",
"search_and_filter",
"update_status",
"fetch_logs",
"fetch_results"
]