Spaces:
Running
Running
Synced repo using 'sync_with_huggingface' Github Action
Browse files- app.py +3 -3
- demos/chunker.py +1 -3
- poetry.lock +0 -0
- pyproject.toml +6 -3
- requirements.txt +2 -2
app.py
CHANGED
@@ -63,8 +63,8 @@ textarea {
|
|
63 |
|
64 |
|
65 |
iscc_theme = gr.themes.Default(
|
66 |
-
font=gr.themes.GoogleFont("Readex Pro"),
|
67 |
-
font_mono=gr.themes.GoogleFont("JetBrains Mono"),
|
68 |
radius_size=gr.themes.sizes.radius_none,
|
69 |
)
|
70 |
|
@@ -74,7 +74,7 @@ demo = gr.TabbedInterface(
|
|
74 |
interface_list=[demo_compare, demo_generate, demo_inspect, demo_chunker],
|
75 |
tab_names=["COMPARE", "GENERATE", "INSPECT", "CHUNKER"],
|
76 |
css=custom_css,
|
77 |
-
theme=iscc_theme,
|
78 |
)
|
79 |
|
80 |
|
|
|
63 |
|
64 |
|
65 |
iscc_theme = gr.themes.Default(
|
66 |
+
font=[gr.themes.GoogleFont("Readex Pro"), "Arial", "sans-serif"],
|
67 |
+
font_mono=[gr.themes.GoogleFont("JetBrains Mono"), "Courier", "monospace"],
|
68 |
radius_size=gr.themes.sizes.radius_none,
|
69 |
)
|
70 |
|
|
|
74 |
interface_list=[demo_compare, demo_generate, demo_inspect, demo_chunker],
|
75 |
tab_names=["COMPARE", "GENERATE", "INSPECT", "CHUNKER"],
|
76 |
css=custom_css,
|
77 |
+
# theme=iscc_theme,
|
78 |
)
|
79 |
|
80 |
|
demos/chunker.py
CHANGED
@@ -45,9 +45,7 @@ def chunk_text(text, chunk_size):
|
|
45 |
end = start + size
|
46 |
chunks.append(no_nl(cleaned[start:end]))
|
47 |
start = end
|
48 |
-
result = [
|
49 |
-
(chunk, f"{size}:{feat}") for chunk, size, feat in zip(chunks, sizes, features)
|
50 |
-
]
|
51 |
idk.sdk_opts.text_avg_chunk_size = original_chunk_size
|
52 |
return result
|
53 |
|
|
|
45 |
end = start + size
|
46 |
chunks.append(no_nl(cleaned[start:end]))
|
47 |
start = end
|
48 |
+
result = [(chunk, f"{size}:{feat}") for chunk, size, feat in zip(chunks, sizes, features)]
|
|
|
|
|
49 |
idk.sdk_opts.text_avg_chunk_size = original_chunk_size
|
50 |
return result
|
51 |
|
poetry.lock
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
pyproject.toml
CHANGED
@@ -8,14 +8,17 @@ readme = "README.md"
|
|
8 |
|
9 |
[tool.poetry.dependencies]
|
10 |
python = "^3.9"
|
11 |
-
gradio = "
|
12 |
iscc-sdk = "^0.6.1"
|
13 |
iscc-core= "^1.0.9"
|
14 |
iscc-sci = "^0.1.0"
|
15 |
-
plotly = "^5.
|
16 |
|
17 |
[tool.poetry.group.dev.dependencies]
|
18 |
-
|
|
|
|
|
|
|
19 |
|
20 |
[build-system]
|
21 |
requires = ["poetry-core"]
|
|
|
8 |
|
9 |
[tool.poetry.dependencies]
|
10 |
python = "^3.9"
|
11 |
+
gradio = "^4.26"
|
12 |
iscc-sdk = "^0.6.1"
|
13 |
iscc-core= "^1.0.9"
|
14 |
iscc-sci = "^0.1.0"
|
15 |
+
plotly = "^5.22.0"
|
16 |
|
17 |
[tool.poetry.group.dev.dependencies]
|
18 |
+
ruff = "*"
|
19 |
+
|
20 |
+
[tool.ruff]
|
21 |
+
line-length = 100
|
22 |
|
23 |
[build-system]
|
24 |
requires = ["poetry-core"]
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
gradio==4.
|
2 |
iscc-sdk==0.6.1
|
3 |
iscc-core==1.0.9
|
4 |
iscc-sci==0.1.0
|
5 |
-
plotly==5.
|
|
|
1 |
+
gradio==4.36.1
|
2 |
iscc-sdk==0.6.1
|
3 |
iscc-core==1.0.9
|
4 |
iscc-sci==0.1.0
|
5 |
+
plotly==5.22.0
|