Spaces:
Running
Running
feat: resume ragas tasks after restart
Browse files
app.py
CHANGED
|
@@ -237,7 +237,7 @@ def _build_and_stream(
|
|
| 237 |
conn.close()
|
| 238 |
flush_langfuse()
|
| 239 |
|
| 240 |
-
return state, config, cost_tracker.summary(), ragas_out
|
| 241 |
|
| 242 |
|
| 243 |
def _format_findings_table(findings: list) -> str:
|
|
@@ -890,7 +890,7 @@ def run_review(repo: str, pr_number: int, endpoint_name: str = "", progress=gr.P
|
|
| 890 |
|
| 891 |
t0 = time.time()
|
| 892 |
try:
|
| 893 |
-
state, config, cost_summary, ragas_out = _build_and_stream(
|
| 894 |
repo.strip(), int(pr_number), endpoint_name, ragas_background=True,
|
| 895 |
)
|
| 896 |
except Exception as exc:
|
|
|
|
| 237 |
conn.close()
|
| 238 |
flush_langfuse()
|
| 239 |
|
| 240 |
+
return state, config, cost_tracker.summary(), ragas_out, ragas_inputs
|
| 241 |
|
| 242 |
|
| 243 |
def _format_findings_table(findings: list) -> str:
|
|
|
|
| 890 |
|
| 891 |
t0 = time.time()
|
| 892 |
try:
|
| 893 |
+
state, config, cost_summary, ragas_out, _ragas_inputs = _build_and_stream(
|
| 894 |
repo.strip(), int(pr_number), endpoint_name, ragas_background=True,
|
| 895 |
)
|
| 896 |
except Exception as exc:
|