Spaces:
Sleeping
Sleeping
| import evaluate | |
| from evaluate.utils import launch_gradio_widget | |
| module = evaluate.load("SEA-AI/horizon-metrics") | |
| #launch_gradio_widget(module) | |
| """def launch_empty_interface(): | |
| try: | |
| import gradio as gr | |
| except ImportError as error: | |
| print( | |
| "To create a metric widget with Gradio make sure gradio is installed." | |
| ) | |
| raise error | |
| def dummy_function(): | |
| return "This is an empty interface." | |
| iface = gr.Interface( | |
| fn=dummy_function, | |
| inputs=[], | |
| outputs=[], | |
| description="This is a description of the empty interface.", | |
| title="Empty Interface", | |
| article="You can provide additional information or instructions here.") | |
| iface.launch() | |
| # Call the function to launch the interface | |
| launch_empty_interface()""" | |