Joseph Pollack commited on
Commit
12522e5
·
unverified ·
1 Parent(s): a9547e7

fix interface

Browse files
Files changed (4) hide show
  1. .github/workflows/docs.yml +5 -3
  2. pyproject.toml +2 -2
  3. src/app.py +3 -3
  4. uv.lock +2 -2
.github/workflows/docs.yml CHANGED
@@ -4,6 +4,7 @@ on:
4
  push:
5
  branches:
6
  - main
 
7
  paths:
8
  - 'docs/**'
9
  - 'mkdocs.yml'
@@ -11,6 +12,7 @@ on:
11
  pull_request:
12
  branches:
13
  - main
 
14
  paths:
15
  - 'docs/**'
16
  - 'mkdocs.yml'
@@ -45,14 +47,14 @@ jobs:
45
  uv run mkdocs build --strict
46
 
47
  - name: Deploy to GitHub Pages
48
- if: github.ref == 'refs/heads/main' && github.event_name == 'push'
49
  uses: peaceiris/actions-gh-pages@v3
50
  with:
51
  github_token: ${{ secrets.GITHUB_TOKEN }}
52
  publish_dir: ./site
53
- publish_branch: gh-pages
54
  cname: false
55
- keep_files: false
56
 
57
 
58
 
 
4
  push:
5
  branches:
6
  - main
7
+ - dev
8
  paths:
9
  - 'docs/**'
10
  - 'mkdocs.yml'
 
12
  pull_request:
13
  branches:
14
  - main
15
+ - dev
16
  paths:
17
  - 'docs/**'
18
  - 'mkdocs.yml'
 
47
  uv run mkdocs build --strict
48
 
49
  - name: Deploy to GitHub Pages
50
+ if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push'
51
  uses: peaceiris/actions-gh-pages@v3
52
  with:
53
  github_token: ${{ secrets.GITHUB_TOKEN }}
54
  publish_dir: ./site
55
+ publish_branch: dev
56
  cname: false
57
+ keep_files: true
58
 
59
 
60
 
pyproject.toml CHANGED
@@ -7,7 +7,7 @@ requires-python = ">=3.11"
7
  dependencies = [
8
  "pydantic>=2.7",
9
  "pydantic-settings>=2.2",
10
- "pydantic-ai>=0.0.16",
11
  "openai>=1.0.0",
12
  "anthropic>=0.18.0",
13
  "httpx>=0.27",
@@ -29,7 +29,7 @@ dependencies = [
29
  "tokenizers>=0.22.0,<=0.23.0",
30
  "transformers>=4.57.2",
31
  "chromadb>=0.4.0",
32
- "rpds-py>=0.29.0", # Python implementation of rpds (required by chromadb on Windows)
33
  "sentence-transformers>=2.2.0",
34
  "numpy<2.0",
35
  "agent-framework-core>=1.0.0b251120,<2.0.0",
 
7
  dependencies = [
8
  "pydantic>=2.7",
9
  "pydantic-settings>=2.2",
10
+ "pydantic-ai[huggingface]>=0.0.16",
11
  "openai>=1.0.0",
12
  "anthropic>=0.18.0",
13
  "httpx>=0.27",
 
29
  "tokenizers>=0.22.0,<=0.23.0",
30
  "transformers>=4.57.2",
31
  "chromadb>=0.4.0",
32
+ "rpds-py>=0.29.0", # Python implementation of rpds (required by chromadb on Windows)
33
  "sentence-transformers>=2.2.0",
34
  "numpy<2.0",
35
  "agent-framework-core>=1.0.0b251120,<2.0.0",
src/app.py CHANGED
@@ -705,14 +705,14 @@ def create_demo() -> gr.Blocks:
705
  # Each inner list: [message, mode, hf_model, hf_provider]
706
  [
707
  "What drugs could be repurposed for Alzheimer's disease?",
708
- "iterative",
709
  None,
710
  None,
711
  ],
712
- ["Is metformin effective for treating cancer?", "iterative", None, None],
713
  [
714
  "What medications show promise for Long COVID treatment?",
715
- "iterative",
716
  None,
717
  None,
718
  ],
 
705
  # Each inner list: [message, mode, hf_model, hf_provider]
706
  [
707
  "What drugs could be repurposed for Alzheimer's disease?",
708
+ "simple",
709
  None,
710
  None,
711
  ],
712
+ ["Is metformin effective for treating cancer?", "simple", None, None],
713
  [
714
  "What medications show promise for Long COVID treatment?",
715
+ "simple",
716
  None,
717
  None,
718
  ],
uv.lock CHANGED
@@ -1,5 +1,5 @@
1
  version = 1
2
- revision = 3
3
  requires-python = ">=3.11"
4
  resolution-markers = [
5
  "python_full_version >= '3.13'",
@@ -1091,7 +1091,7 @@ requires-dist = [
1091
  { name = "openai", specifier = ">=1.0.0" },
1092
  { name = "pre-commit", marker = "extra == 'dev'", specifier = ">=3.7" },
1093
  { name = "pydantic", specifier = ">=2.7" },
1094
- { name = "pydantic-ai", specifier = ">=0.0.16" },
1095
  { name = "pydantic-ai-slim", extras = ["huggingface"], specifier = ">=0.0.18" },
1096
  { name = "pydantic-graph", specifier = ">=1.22.0" },
1097
  { name = "pydantic-settings", specifier = ">=2.2" },
 
1
  version = 1
2
+ revision = 2
3
  requires-python = ">=3.11"
4
  resolution-markers = [
5
  "python_full_version >= '3.13'",
 
1091
  { name = "openai", specifier = ">=1.0.0" },
1092
  { name = "pre-commit", marker = "extra == 'dev'", specifier = ">=3.7" },
1093
  { name = "pydantic", specifier = ">=2.7" },
1094
+ { name = "pydantic-ai", extras = ["huggingface"], specifier = ">=0.0.16" },
1095
  { name = "pydantic-ai-slim", extras = ["huggingface"], specifier = ">=0.0.18" },
1096
  { name = "pydantic-graph", specifier = ">=1.22.0" },
1097
  { name = "pydantic-settings", specifier = ">=2.2" },