Spaces:
Sleeping
Sleeping
John Graham Reynolds
commited on
Commit
·
c5503a4
1
Parent(s):
b1e5224
update app, still need to configure compute fn args
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
import evaluate
|
2 |
from evaluate.utils import infer_gradio_input_types, json_to_string_type, parse_readme
|
3 |
-
from fixed_f1 import FixedF1
|
4 |
# from evaluate.utils import launch_gradio_widget # using this directly is erroneous - lets fix this
|
|
|
|
|
5 |
|
6 |
metric = FixedF1()
|
7 |
|
@@ -16,8 +17,6 @@ gradio_input_types = infer_gradio_input_types(feature_types)
|
|
16 |
def compute():
|
17 |
metric._compute()
|
18 |
|
19 |
-
import gradio as gr
|
20 |
-
|
21 |
space = gr.Interface(
|
22 |
fn=compute,
|
23 |
inputs=gr.Dataframe(
|
|
|
1 |
import evaluate
|
2 |
from evaluate.utils import infer_gradio_input_types, json_to_string_type, parse_readme
|
|
|
3 |
# from evaluate.utils import launch_gradio_widget # using this directly is erroneous - lets fix this
|
4 |
+
from fixed_f1 import FixedF1
|
5 |
+
import gradio as gr
|
6 |
|
7 |
metric = FixedF1()
|
8 |
|
|
|
17 |
def compute():
|
18 |
metric._compute()
|
19 |
|
|
|
|
|
20 |
space = gr.Interface(
|
21 |
fn=compute,
|
22 |
inputs=gr.Dataframe(
|