Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
FinancialSupport
commited on
Commit
•
e8d974b
1
Parent(s):
026d606
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
import pandas as pd
|
3 |
+
|
4 |
+
csv_filename = 'leaderboard.csv'
|
5 |
+
|
6 |
+
def display_leaderboard():
|
7 |
+
return pd.read_csv(csv_filename, sep=';')
|
8 |
+
|
9 |
+
|
10 |
+
iface = gr.Interface(
|
11 |
+
fn=display_leaderboard,
|
12 |
+
inputs=None,
|
13 |
+
outputs=gr.Dataframe(label="Risultati"),
|
14 |
+
title="Classifica modelli ITA",
|
15 |
+
description="I modelli sono testati su SQuAD-it. Si ringrazia @galatolo per lo script. Se vuoi aggiungere il tuo modello scrivimi!"
|
16 |
+
)
|
17 |
+
|
18 |
+
|
19 |
+
iface.launch()
|