Spaces:
Configuration error
Configuration error
Launch evaluation workspace on existing Gradio hosting
Browse filesFiles changed (4)
- README.md+9-3
- app.pyAdded+43
- harnesslab_bundle.zip+1-1
- manifest.json+1-1
2 unmodified lines34567891012 unmodified lines232425262728293031322 unmodified linesemoji: 🧪colorFrom: indigocolorTo: greensdk: dockerapp_port: 7860pinned: falseshort_description: Agent evaluation workspace with reproducible tool traces---12 unmodified lines## 배포 구조CPU Docker Space에서 Python 3.12 + FastAPI로 평가 UI와 기존 HarnessLab 엔진을 실행합니다.`harnesslab_bundle.zip`은 검토된 앱·코어·시나리오·합성 평가 기록만 포함합니다.`manifest.json`에서 포함 파일과 SHA-256을 확인할 수 있습니다.로컬 가상환경, 인증 정보, 브라우저 데이터, 문서/발표 자료는 포함하지 않습니다.## 실제 추론을 연결할 때2 unmodified lines345678910111212 unmodified lines25262728293031323334353637382 unmodified linesemoji: 🧪colorFrom: indigocolorTo: greensdk: gradiosdk_version: 6.32.0python_version: '3.12'app_file: app.pypinned: falseshort_description: Agent evaluation workspace with reproducible tool traces---12 unmodified lines## 배포 구조기존 무료 Gradio Space에서 Python 3.12 + FastAPI로 평가 UI와 기존 엔진을 실행합니다.Gradio는 `/gradio` 경로에 마운트하며 기본 화면은 평가 워크스페이스입니다.ZeroGPU 하드웨어 설정은 유지하지만 이번 앱은 GPU 함수를 호출하거나 모델을 로드하지 않습니다.`harnesslab_bundle.zip`은 검토된 앱·코어·시나리오·합성 평가 기록만 포함합니다.`manifest.json`에서 포함 파일과 SHA-256을 확인할 수 있습니다.로컬 가상환경, 인증 정보, 브라우저 데이터, 문서/발표 자료는 포함하지 않습니다.별도 CPU Docker Space를 사용할 수 있는 계정은 포함된 Dockerfile과 `sdk: docker`,`app_port: 7860` 설정으로 같은 번들을 실행할 수 있습니다.## 실제 추론을 연결할 때
12345678910111213141516171819202122232425262728293031323334353637383940414243"""Gradio Space entrypoint for the packaged HarnessLab workspace."""
import hashlibimport jsonimport osfrom pathlib import Pathimport zipfile
def unpack_bundle(root: Path) -> None: bundle = root / "harnesslab_bundle.zip" manifest = json.loads((root / "manifest.json").read_text(encoding="utf-8")) if hashlib.sha256(bundle.read_bytes()).hexdigest() != manifest["bundle_sha256"]: raise ValueError("Bundle checksum mismatch") with zipfile.ZipFile(bundle) as archive: expected = {entry["path"]: entry["sha256"] for entry in manifest["files"]} if set(archive.namelist()) != set(expected): raise ValueError("Bundle file manifest mismatch") for name in archive.namelist(): target = (root / name).resolve() if not target.is_relative_to(root.resolve()): raise ValueError("Invalid bundle member path") if hashlib.sha256(archive.read(name)).hexdigest() != expected[name]: raise ValueError("Bundle member checksum mismatch") archive.extractall(root)
def main() -> None: root = Path(__file__).resolve().parent unpack_bundle(root) os.environ.setdefault("GRADIO_ANALYTICS_ENABLED", "False") import gradio as gr import uvicorn from space_app import app as workspace
with gr.Blocks(title="HarnessLab") as info: gr.Markdown("# HarnessLab\n[평가 워크스페이스 열기](/)\n\n기존 평가 엔진을 실행하는 프로토타입입니다. GPU 추론은 포함하지 않습니다.") application = gr.mount_gradio_app(workspace, info, path="/gradio") uvicorn.run(application, host="0.0.0.0", port=7860, workers=1)
if __name__ == "__main__": main()123version https://git-lfs.github.com/spec/v1oid sha256:5f66d96e7e9398827d5e9e9e1067dd7099c5e9f22735036d014ebaccc70e1209size 53363123version https://git-lfs.github.com/spec/v1oid sha256:6b48b04d1872d55c7e494e586eabd85e3e276b6dc5170168926199383266220fsize 53363
123456{"release": "HarnessLab Space Prototype","bundle_sha256": "5f66d96e7e9398827d5e9e9e1067dd7099c5e9f22735036d014ebaccc70e1209","files": [{"path": "harness/__init__.py",123456{"release": "HarnessLab Space Prototype","bundle_sha256": "6b48b04d1872d55c7e494e586eabd85e3e276b6dc5170168926199383266220f","files": [{"path": "harness/__init__.py",
README.md+9-3
app.pyAdded+43
harnesslab_bundle.zip+1-1
manifest.json+1-1