Spaces:
Running
Running
AzizHamad
commited on
Commit
·
25cf149
1
Parent(s):
7eba1aa
Customize static Space page (SQL BLEU)
Browse files- index.html +17 -16
index.html
CHANGED
|
@@ -1,19 +1,20 @@
|
|
| 1 |
<!doctype html>
|
| 2 |
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
<!doctype html>
|
| 2 |
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>text2sql-sql-bleu</title>
|
| 7 |
+
<style>
|
| 8 |
+
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; max-width:900px; margin:40px auto; padding:0 16px; line-height:1.5;}
|
| 9 |
+
pre{background:#f6f8fa; padding:16px; border-radius:10px; overflow:auto;}
|
| 10 |
+
code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;}
|
| 11 |
+
</style>
|
| 12 |
+
</head>
|
| 13 |
+
<body>
|
| 14 |
+
<h2>Hugging Face Evaluate metric wrapper for SQL BLEU (SQL).</h2>
|
| 15 |
+
<p><b>Usage:</b></p>
|
| 16 |
+
<pre><code>import evaluate
|
| 17 |
+
m = evaluate.load("3zizo3/text2sql-sql-bleu")
|
| 18 |
+
print(m.compute(predictions=["select 1"], references=["select 1"]))</code></pre>
|
| 19 |
+
</body>
|
| 20 |
</html>
|