svenwey commited on
Commit
1224391
·
verified ·
1 Parent(s): 0ca0ed0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -1,13 +1,6 @@
1
  import evaluate
2
- import gradio as gr
3
 
4
- module = evaluate.load("svenwey/logscoremetric")
5
 
6
- inputs = gr.Dataframe()
7
- outputs = gr.Dataframe()
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)