Spaces:
Sleeping
Sleeping
Melika Kheirieh
commited on
Commit
·
3c7eebd
1
Parent(s):
4dae3e6
style: fix Ruff issues (F401 unused import, E741 ambiguous var)
Browse files- nl2sql/pipeline.py +1 -1
- ui/benchmark_app.py +1 -1
nl2sql/pipeline.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
from __future__ import annotations
|
| 2 |
import traceback
|
| 3 |
-
from dataclasses import dataclass
|
| 4 |
from typing import Dict, Any, Optional, List
|
| 5 |
|
| 6 |
from nl2sql.types import StageResult
|
|
|
|
| 1 |
from __future__ import annotations
|
| 2 |
import traceback
|
| 3 |
+
from dataclasses import dataclass
|
| 4 |
from typing import Dict, Any, Optional, List
|
| 5 |
|
| 6 |
from nl2sql.types import StageResult
|
ui/benchmark_app.py
CHANGED
|
@@ -15,7 +15,7 @@ if not result_files:
|
|
| 15 |
st.stop()
|
| 16 |
|
| 17 |
file = st.selectbox("Select benchmark file", result_files)
|
| 18 |
-
rows = [json.loads(
|
| 19 |
df = pd.DataFrame(rows)
|
| 20 |
|
| 21 |
# 2. Summary metrics
|
|
|
|
| 15 |
st.stop()
|
| 16 |
|
| 17 |
file = st.selectbox("Select benchmark file", result_files)
|
| 18 |
+
rows = [json.loads(line) for line in open(file)]
|
| 19 |
df = pd.DataFrame(rows)
|
| 20 |
|
| 21 |
# 2. Summary metrics
|