Spaces:
Build error
Build error
Victoria Oberascher
commited on
Commit
·
aba632c
1
Parent(s):
686db84
delete app.py
Browse files
app.py
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
import evaluate
|
2 |
-
from evaluate.utils import launch_gradio_widget
|
3 |
-
|
4 |
-
module = evaluate.load("SEA-AI/horizon-metrics")
|
5 |
-
#launch_gradio_widget(module)
|
6 |
-
"""def launch_empty_interface():
|
7 |
-
|
8 |
-
try:
|
9 |
-
import gradio as gr
|
10 |
-
except ImportError as error:
|
11 |
-
print(
|
12 |
-
"To create a metric widget with Gradio make sure gradio is installed."
|
13 |
-
)
|
14 |
-
raise error
|
15 |
-
|
16 |
-
def dummy_function():
|
17 |
-
return "This is an empty interface."
|
18 |
-
|
19 |
-
iface = gr.Interface(
|
20 |
-
fn=dummy_function,
|
21 |
-
inputs=[],
|
22 |
-
outputs=[],
|
23 |
-
description="This is a description of the empty interface.",
|
24 |
-
title="Empty Interface",
|
25 |
-
article="You can provide additional information or instructions here.")
|
26 |
-
|
27 |
-
iface.launch()
|
28 |
-
|
29 |
-
|
30 |
-
# Call the function to launch the interface
|
31 |
-
launch_empty_interface()"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|