akolpakov commited on
Commit
74bf4fa
·
verified ·
1 Parent(s): dd87e1a

Redeploy Arepo GUI from GitHub Actions

Browse files
.github/workflows/ci.yml DELETED
@@ -1,91 +0,0 @@
1
- name: CI
2
-
3
- on:
4
- push:
5
- branches: [main, evidence-design-sprint, "feature/**", "cleanup/**"]
6
- pull_request:
7
- branches: [main]
8
- workflow_dispatch:
9
-
10
- jobs:
11
- unit:
12
- runs-on: ubuntu-latest
13
- strategy:
14
- matrix:
15
- python-version: ["3.9", "3.11"]
16
- steps:
17
- - uses: actions/checkout@v4
18
- - uses: actions/setup-python@v5
19
- with:
20
- python-version: ${{ matrix.python-version }}
21
- - run: pip install -e ".[test]"
22
- - run: pytest -m unit -v
23
-
24
- integration:
25
- if: github.event_name == 'pull_request'
26
- runs-on: ubuntu-latest
27
- steps:
28
- - uses: actions/checkout@v4
29
- - uses: actions/setup-python@v5
30
- with:
31
- python-version: "3.11"
32
- - uses: actions/cache@v4
33
- with:
34
- path: ~/.cache/huggingface
35
- key: hf-models-${{ hashFiles('src/arepo/core.py') }}
36
- restore-keys: hf-models-
37
- - run: pip install -e ".[test]"
38
- - run: pytest -m slow -v
39
-
40
- server-smoke:
41
- runs-on: ubuntu-latest
42
- steps:
43
- - uses: actions/checkout@v4
44
- - uses: actions/setup-python@v5
45
- with:
46
- python-version: "3.11"
47
- - run: pip install -e ".[web]"
48
- - name: Start Flask server
49
- run: |
50
- python -m flask --app 'arepo.web:create_app(preload_models=False)' run --host 127.0.0.1 --port 5050 > server.log 2>&1 &
51
- echo $! > server.pid
52
- - name: Check health route
53
- run: |
54
- for i in {1..30}; do
55
- if curl -fsS http://127.0.0.1:5050/health; then
56
- exit 0
57
- fi
58
- sleep 1
59
- done
60
- cat server.log
61
- exit 1
62
- - name: Check demo corpus route
63
- run: curl -fsS http://127.0.0.1:5050/demo-corpus
64
- - name: Stop Flask server
65
- if: always()
66
- run: |
67
- if [ -f server.pid ]; then
68
- kill "$(cat server.pid)" || true
69
- fi
70
- cat server.log || true
71
-
72
- reproducibility:
73
- if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
74
- runs-on: ubuntu-latest
75
- steps:
76
- - uses: actions/checkout@v4
77
- - uses: actions/setup-python@v5
78
- with:
79
- python-version: "3.11"
80
- - uses: actions/cache@v4
81
- with:
82
- path: ~/.cache/huggingface
83
- key: hf-models-${{ hashFiles('src/arepo/core.py') }}
84
- restore-keys: hf-models-
85
- - run: pip install -e ".[all]"
86
- - run: pytest -m reproducibility -v
87
- - uses: actions/upload-artifact@v4
88
- if: always()
89
- with:
90
- name: visualizations
91
- path: visualizations/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
.github/workflows/docs.yml DELETED
@@ -1,43 +0,0 @@
1
- name: Docs
2
-
3
- on:
4
- push:
5
- branches: [main, evidence-design-sprint]
6
- pull_request:
7
- branches: [main]
8
- workflow_dispatch:
9
-
10
- permissions:
11
- contents: read
12
- pages: write
13
- id-token: write
14
-
15
- concurrency:
16
- group: pages
17
- cancel-in-progress: false
18
-
19
- jobs:
20
- build:
21
- runs-on: ubuntu-latest
22
- steps:
23
- - uses: actions/checkout@v4
24
- - uses: actions/setup-python@v5
25
- with:
26
- python-version: "3.11"
27
- - run: pip install -e ".[docs]"
28
- - run: python -m sphinx -W -b html docs docs/_build/html
29
- - uses: actions/upload-pages-artifact@v3
30
- if: github.ref == 'refs/heads/main'
31
- with:
32
- path: docs/_build/html
33
-
34
- deploy:
35
- if: github.ref == 'refs/heads/main'
36
- needs: build
37
- runs-on: ubuntu-latest
38
- environment:
39
- name: github-pages
40
- url: ${{ steps.deployment.outputs.page_url }}
41
- steps:
42
- - id: deployment
43
- uses: actions/deploy-pages@v4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -7,7 +7,6 @@ app_port: 7860
7
  pinned: false
8
  license: mit
9
  ---
10
-
11
  # Arepo - MoE AI Text Workbench
12
 
13
  <p align="center">
@@ -16,6 +15,10 @@ license: mit
16
 
17
  Arepo scores text with a 4D Benford/mantissa engine and a mixture of local Gaussian experts. The public UI treats windows as evidence rather than forced verdicts, then aggregates that evidence at document level.
18
 
 
 
 
 
19
  ## Authors
20
 
21
  <table>
 
7
  pinned: false
8
  license: mit
9
  ---
 
10
  # Arepo - MoE AI Text Workbench
11
 
12
  <p align="center">
 
15
 
16
  Arepo scores text with a 4D Benford/mantissa engine and a mixture of local Gaussian experts. The public UI treats windows as evidence rather than forced verdicts, then aggregates that evidence at document level.
17
 
18
+ <p align="center">
19
+ <a href="https://akolpakov-satorarepo.hf.space/"><strong>Launch the public GUI on Hugging Face</strong></a>
20
+ </p>
21
+
22
  ## Authors
23
 
24
  <table>
src/arepo/templates/index.html CHANGED
@@ -272,9 +272,6 @@
272
  <aside class="panel">
273
  <div class="panel-head">Reference Tests</div>
274
  <div class="panel-body">
275
- <div class="toolbar">
276
- <button id="reloadSamples">Reload</button>
277
- </div>
278
  <div id="demoList" class="demo-list"></div>
279
  </div>
280
  </aside>
@@ -503,7 +500,6 @@
503
  setError('');
504
  results.style.display = 'none';
505
  });
506
- document.getElementById('reloadSamples').addEventListener('click', loadCorpus);
507
  textInput.addEventListener('input', updateCount);
508
  updateCount();
509
  loadCorpus().catch((err) => setError(err.message));
 
272
  <aside class="panel">
273
  <div class="panel-head">Reference Tests</div>
274
  <div class="panel-body">
 
 
 
275
  <div id="demoList" class="demo-list"></div>
276
  </div>
277
  </aside>
 
500
  setError('');
501
  results.style.display = 'none';
502
  });
 
503
  textInput.addEventListener('input', updateCount);
504
  updateCount();
505
  loadCorpus().catch((err) => setError(err.message));