import evaluate from evaluate.utils import launch_gradio_widget # Define the path to your custom metric directory metric_path = "Ikala-allen/relation_extraction" module = evaluate.load(metric_path) launch_gradio_widget(module)