Update app.py
Browse files
app.py
CHANGED
@@ -1,13 +1,6 @@
|
|
1 |
import evaluate
|
2 |
-
|
3 |
|
4 |
-
module = evaluate.load("svenwey/logscoremetric")
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
interface = gr.Interface(
|
9 |
-
fn=module,
|
10 |
-
inputs=inputs,
|
11 |
-
outputs=outputs
|
12 |
-
)
|
13 |
-
interface.launch()
|
|
|
1 |
import evaluate
|
2 |
+
from evaluate.utils import launch_gradio_widget
|
3 |
|
|
|
4 |
|
5 |
+
module = evaluate.load("svenwey/logscoremetric")
|
6 |
+
launch_gradio_widget(module)
|
|
|
|
|
|
|
|
|
|
|
|