SudharsanSundar commited on
Commit
04a5a8e
1 Parent(s): 7e99b87

Trying new setup (using acc as metric)

Browse files
Files changed (1) hide show
  1. app.py +4 -14
app.py CHANGED
@@ -1,16 +1,6 @@
1
- import gradio as gr
 
2
 
3
 
4
- def greet(name):
5
- return "Hello " + name + "!!"
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)