import evaluate from evaluate.utils import launch_gradio_widget import gradio as gr module = evaluate.load("saicharan2804/molgenevalmetric") # launch_gradio_widget(module) iface = gr.Interface( fn = module.compute, inputs=[ gr.File(label="Generated SMILES"), gr.File(label="Training Data", value=None), ], outputs="text" ) iface.launch()