test / app.py

Commit History

  1. revert: Gradio 5.x + ZeroGPU @spaces.GPU + demo.launch (was working, 4.x had Starlette bug)

    1cca871
  2. fix: add @spaces.GPU stub to satisfy ZeroGPU checker (hardware setting needed in UI)

    bc9ea20
  3. fix: cpu-basic hardware + gr.mount_gradio_app + uvicorn (removes ZeroGPU dependency)

    3a03e86
  4. fix: Gradio 4 HighlightedText unhashable dict error by returning list of tuples to UI

    9a16674
  5. fix: change flagging_mode to allow_flagging for Gradio 4.x compatibility

    05b87c6
  6. refactor: switch to CPU-only — remove ZeroGPU/spaces, consistent latency

    61d1581
  7. perf: async endpoint + startup warmup to reduce ZeroGPU cold-start latency

    afd5b3c
  8. fix: include score in entity response (was missing from highlighted list)

    9fd092c
  9. fix: remove add_middleware (cannot add after server start, HF proxy handles CORS)

    f38bf0c
  10. fix: use demo.launch() for ZeroGPU compliance + attach REST routes to gr_app

    55012e5
  11. fix: use @spaces.GPU directly — ZeroGPU scanner requires literal decorator

    7048093
  12. fix: add uvicorn.run() to keep server alive — was exiting with code 0

    997904f
  13. fix: make @spaces.GPU conditional + fix Pydantic v2 ConfigDict

    11d1836
  14. feat: add FastAPI REST endpoint /api/detect alongside Gradio UI

    d420fe2

  1. Add test-gradio HF Space for codemix PII detector⁠

    Ramosh99 +1: Claude Opus 4.6
    1fce961