Spaces:
Runtime error
Runtime error
SudharsanSundar
commited on
Commit
•
04a5a8e
1
Parent(s):
7e99b87
Trying new setup (using acc as metric)
Browse files
app.py
CHANGED
@@ -1,16 +1,6 @@
|
|
1 |
-
import
|
|
|
2 |
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
-
iface.launch()
|
10 |
-
|
11 |
-
# import evaluate
|
12 |
-
# from evaluate.utils import launch_gradio_widget
|
13 |
-
|
14 |
-
|
15 |
-
# module = evaluate.load("lvwerra/element_count")
|
16 |
-
# launch_gradio_widget(module)
|
|
|
1 |
+
import evaluate
|
2 |
+
from evaluate.utils import launch_gradio_widget
|
3 |
|
4 |
|
5 |
+
module = evaluate.load("evaluate-metric/accuracy")
|
6 |
+
launch_gradio_widget(module)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|