ginipick commited on
Commit
87ef853
Β·
verified Β·
1 Parent(s): a396343

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. app.py +3 -2
  3. core.cpython-312-x86_64-linux-gnu.so +1 -1
Dockerfile CHANGED
@@ -19,4 +19,4 @@ RUN python -c "from core import soma_pipeline, generate_hwpx; print('βœ… core.so
19
 
20
  EXPOSE 7860
21
 
22
- CMD ["python", "app.py"]
 
19
 
20
  EXPOSE 7860
21
 
22
+ CMD ["python", "app.py"]
app.py CHANGED
@@ -6,6 +6,7 @@ import os, re, json, time, tempfile, threading
6
  import gradio as gr
7
 
8
  # ── core μ—”μ§„ import (.so λ˜λŠ” .py) ──
 
9
  from core import *
10
 
11
  def build_ui():
@@ -716,8 +717,8 @@ async def _soma_preview(req: _FAReq):
716
  async def _soma_status():
717
  return JSONResponse({
718
  "status": "ok",
719
- "hwpjs_ready": _HWPJS_READY,
720
- "engine": "ohah/hwpjs WASM" if _HWPJS_READY else "Python lxml"
721
  })
722
 
723
  # HF Spaces ν˜Έν™˜ β€” ν—¬μŠ€μ²΄ν¬
 
6
  import gradio as gr
7
 
8
  # ── core μ—”μ§„ import (.so λ˜λŠ” .py) ──
9
+ import core
10
  from core import *
11
 
12
  def build_ui():
 
717
  async def _soma_status():
718
  return JSONResponse({
719
  "status": "ok",
720
+ "hwpjs_ready": core._HWPJS_READY,
721
+ "engine": "ohah/hwpjs WASM" if core._HWPJS_READY else "Python lxml"
722
  })
723
 
724
  # HF Spaces ν˜Έν™˜ β€” ν—¬μŠ€μ²΄ν¬
core.cpython-312-x86_64-linux-gnu.so CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9a2f70445fe0449fca607ec794c7ac0bca20006b794891a51f8a68be939cf477
3
  size 1929560
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd6e63d0ea3b944267a994e460c7c2408755a149c798dc27b0605feaeac88faf
3
  size 1929560