Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
alexrs-cohere
commited on
Commit
·
ea62d05
0
Parent(s):
Command A Translate
Browse files- .gitattributes +41 -0
- .pre-commit-config.yaml +33 -0
- .python-version +1 -0
- README.md +12 -0
- app.py +97 -0
- assets/aya-vision-win-rates.png +3 -0
- assets/aya-vision.png +3 -0
- assets/command-a-longbech-v2.png +3 -0
- assets/invoice-1.jpg +3 -0
- pyproject.toml +51 -0
- requirements.txt +314 -0
- style.css +4 -0
- uv.lock +0 -0
.gitattributes
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.whl filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
.pre-commit-config.yaml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
repos:
|
| 2 |
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
| 3 |
+
rev: v5.0.0
|
| 4 |
+
hooks:
|
| 5 |
+
- id: check-executables-have-shebangs
|
| 6 |
+
- id: check-json
|
| 7 |
+
- id: check-merge-conflict
|
| 8 |
+
- id: check-shebang-scripts-are-executable
|
| 9 |
+
- id: check-toml
|
| 10 |
+
- id: check-yaml
|
| 11 |
+
- id: end-of-file-fixer
|
| 12 |
+
- id: mixed-line-ending
|
| 13 |
+
args: ["--fix=lf"]
|
| 14 |
+
- id: requirements-txt-fixer
|
| 15 |
+
- id: trailing-whitespace
|
| 16 |
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
| 17 |
+
rev: v0.12.0
|
| 18 |
+
hooks:
|
| 19 |
+
- id: ruff-check
|
| 20 |
+
args: ["--fix"]
|
| 21 |
+
- id: ruff-format
|
| 22 |
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
| 23 |
+
rev: v1.16.1
|
| 24 |
+
hooks:
|
| 25 |
+
- id: mypy
|
| 26 |
+
args: ["--ignore-missing-imports"]
|
| 27 |
+
additional_dependencies:
|
| 28 |
+
[
|
| 29 |
+
"types-python-slugify",
|
| 30 |
+
"types-pytz",
|
| 31 |
+
"types-PyYAML",
|
| 32 |
+
"types-requests",
|
| 33 |
+
]
|
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.10
|
README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Command A Reasoning
|
| 3 |
+
emoji: ⚡
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 5.34.2
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
from collections.abc import Iterator
|
| 3 |
+
|
| 4 |
+
import gradio as gr
|
| 5 |
+
from cohere import ClientV2
|
| 6 |
+
|
| 7 |
+
model_id = "command-a-translate-08-2025"
|
| 8 |
+
|
| 9 |
+
# Initialize Cohere client
|
| 10 |
+
api_key = os.getenv("COHERE_API_KEY")
|
| 11 |
+
if not api_key:
|
| 12 |
+
raise ValueError("COHERE_API_KEY environment variable is required")
|
| 13 |
+
client = ClientV2(api_key=api_key, client_name="hf-command-a-translate-08-2025")
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
def generate(message: str, history: list[dict], max_new_tokens: int = 512) -> Iterator[str]:
|
| 17 |
+
"""
|
| 18 |
+
Gradio passes the conversation as a list of message dicts, not as (message, history).
|
| 19 |
+
The last message is the current user message, previous are the history.
|
| 20 |
+
"""
|
| 21 |
+
# Build messages for Cohere API (text-only)
|
| 22 |
+
messages = []
|
| 23 |
+
|
| 24 |
+
# Add conversation history (text-only)
|
| 25 |
+
for item in history:
|
| 26 |
+
role = item.get("role")
|
| 27 |
+
content = item.get("content", "")
|
| 28 |
+
if content is None:
|
| 29 |
+
content = ""
|
| 30 |
+
if not isinstance(content, str):
|
| 31 |
+
content = str(content)
|
| 32 |
+
if role in ("assistant", "user"):
|
| 33 |
+
messages.append({"role": role, "content": content})
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
# Add current user message (text-only)
|
| 37 |
+
current_text = message or ""
|
| 38 |
+
|
| 39 |
+
if current_text is None:
|
| 40 |
+
current_text = ""
|
| 41 |
+
if not isinstance(current_text, str):
|
| 42 |
+
current_text = str(current_text)
|
| 43 |
+
if current_text:
|
| 44 |
+
messages.append({"role": "user", "content": current_text})
|
| 45 |
+
|
| 46 |
+
try:
|
| 47 |
+
# Call Cohere API using the correct event type and delta access
|
| 48 |
+
response = client.chat_stream(
|
| 49 |
+
model=model_id,
|
| 50 |
+
messages=messages,
|
| 51 |
+
temperature=0.3,
|
| 52 |
+
max_tokens=max_new_tokens,
|
| 53 |
+
)
|
| 54 |
+
|
| 55 |
+
output = ""
|
| 56 |
+
for event in response:
|
| 57 |
+
if getattr(event, "type", None) == "content-delta":
|
| 58 |
+
# event.delta.message.content.text is the streamed text
|
| 59 |
+
text = getattr(event.delta.message.content, "text", "")
|
| 60 |
+
output += text
|
| 61 |
+
yield output
|
| 62 |
+
|
| 63 |
+
except Exception as e:
|
| 64 |
+
gr.Warning(f"Error calling Cohere API: {str(e)}")
|
| 65 |
+
yield ""
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
examples = [
|
| 69 |
+
[
|
| 70 |
+
"Translate everything that follows into Spanish:\n\nEnterprises rely on translation for some of their most sensitive and business-critical documents and cannot risk data leakage, compliance violations, or misunderstandings. Mistranslated documents can reduce trust and have strategic implications."
|
| 71 |
+
],
|
| 72 |
+
[
|
| 73 |
+
"Take the English text that follows and translate it into German. Only respond with the translated text.\n\nCommand A Translate is available today on the Cohere platform and for research use on Hugging Face. If you are interested in private or on-prem deployments, please contact our sales team for bespoke pricing."
|
| 74 |
+
],
|
| 75 |
+
[
|
| 76 |
+
"Can you rewrite that in French please?\n\nTo meet the needs of global enterprises, the model supports translation across 23 widely used business languages: English, French, Spanish, Italian, German, Portuguese, Japanese, Korean, Arabic, Chinese, Russian, Polish, Turkish, Vietnamese, Dutch, Czech, Indonesian, Ukrainian, Romanian, Greek, Hindi, Hebrew, and Persian."
|
| 77 |
+
],
|
| 78 |
+
]
|
| 79 |
+
|
| 80 |
+
demo = gr.ChatInterface(
|
| 81 |
+
fn=generate,
|
| 82 |
+
type="messages",
|
| 83 |
+
textbox=gr.Textbox(autofocus=True),
|
| 84 |
+
additional_inputs=[
|
| 85 |
+
gr.Slider(label="Max New Tokens", minimum=100, maximum=2000, step=10, value=700),
|
| 86 |
+
],
|
| 87 |
+
stop_btn=False,
|
| 88 |
+
title="Command A Translate",
|
| 89 |
+
examples=examples,
|
| 90 |
+
run_examples_on_click=True,
|
| 91 |
+
cache_examples=False,
|
| 92 |
+
css_paths="style.css",
|
| 93 |
+
delete_cache=(1800, 1800),
|
| 94 |
+
)
|
| 95 |
+
|
| 96 |
+
if __name__ == "__main__":
|
| 97 |
+
demo.launch()
|
assets/aya-vision-win-rates.png
ADDED
|
Git LFS Details
|
assets/aya-vision.png
ADDED
|
Git LFS Details
|
assets/command-a-longbech-v2.png
ADDED
|
Git LFS Details
|
assets/invoice-1.jpg
ADDED
|
Git LFS Details
|
pyproject.toml
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "command-a-translate-08-2025"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
description = ""
|
| 5 |
+
readme = "README.md"
|
| 6 |
+
requires-python = ">=3.10"
|
| 7 |
+
dependencies = [
|
| 8 |
+
"cohere>=5.16.1",
|
| 9 |
+
"gradio>=5.34.2",
|
| 10 |
+
]
|
| 11 |
+
|
| 12 |
+
[tool.ruff]
|
| 13 |
+
line-length = 119
|
| 14 |
+
|
| 15 |
+
[tool.ruff.lint]
|
| 16 |
+
select = ["ALL"]
|
| 17 |
+
ignore = [
|
| 18 |
+
"COM812", # missing-trailing-comma
|
| 19 |
+
"D203", # one-blank-line-before-class
|
| 20 |
+
"D213", # multi-line-summary-second-line
|
| 21 |
+
"E501", # line-too-long
|
| 22 |
+
"SIM117", # multiple-with-statements
|
| 23 |
+
#
|
| 24 |
+
"D100", # undocumented-public-module
|
| 25 |
+
"D101", # undocumented-public-class
|
| 26 |
+
"D102", # undocumented-public-method
|
| 27 |
+
"D103", # undocumented-public-function
|
| 28 |
+
"D104", # undocumented-public-package
|
| 29 |
+
"D105", # undocumented-magic-method
|
| 30 |
+
"D107", # undocumented-public-init
|
| 31 |
+
"EM101", # raw-string-in-exception
|
| 32 |
+
"FBT001", # boolean-type-hint-positional-argument
|
| 33 |
+
"FBT002", # boolean-default-value-positional-argument
|
| 34 |
+
"PD901", # pandas-df-variable-name
|
| 35 |
+
"PGH003", # blanket-type-ignore
|
| 36 |
+
"PLR0913", # too-many-arguments
|
| 37 |
+
"PLR0915", # too-many-statements
|
| 38 |
+
"TRY003", # raise-vanilla-args
|
| 39 |
+
]
|
| 40 |
+
unfixable = [
|
| 41 |
+
"F401", # unused-import
|
| 42 |
+
]
|
| 43 |
+
|
| 44 |
+
[tool.ruff.lint.pydocstyle]
|
| 45 |
+
convention = "google"
|
| 46 |
+
|
| 47 |
+
[tool.ruff.lint.per-file-ignores]
|
| 48 |
+
"*.ipynb" = ["T201", "T203"]
|
| 49 |
+
|
| 50 |
+
[tool.ruff.format]
|
| 51 |
+
docstring-code-format = true
|
requirements.txt
ADDED
|
@@ -0,0 +1,314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file was autogenerated by uv via the following command:
|
| 2 |
+
# uv pip compile pyproject.toml -o requirements.txt
|
| 3 |
+
accelerate==1.8.1
|
| 4 |
+
# via command-a-reasoning-08-2025 (pyproject.toml)
|
| 5 |
+
aiofiles==24.1.0
|
| 6 |
+
# via gradio
|
| 7 |
+
annotated-types==0.7.0
|
| 8 |
+
# via pydantic
|
| 9 |
+
anyio==4.9.0
|
| 10 |
+
# via
|
| 11 |
+
# gradio
|
| 12 |
+
# httpx
|
| 13 |
+
# starlette
|
| 14 |
+
audioread==3.0.1
|
| 15 |
+
# via librosa
|
| 16 |
+
av==14.4.0
|
| 17 |
+
# via command-a-reasoning-08-2025 (pyproject.toml)
|
| 18 |
+
certifi==2025.6.15
|
| 19 |
+
# via
|
| 20 |
+
# httpcore
|
| 21 |
+
# httpx
|
| 22 |
+
# requests
|
| 23 |
+
cffi==1.17.1
|
| 24 |
+
# via soundfile
|
| 25 |
+
charset-normalizer==3.4.2
|
| 26 |
+
# via requests
|
| 27 |
+
click==8.2.1
|
| 28 |
+
# via
|
| 29 |
+
# typer
|
| 30 |
+
# uvicorn
|
| 31 |
+
decorator==5.2.1
|
| 32 |
+
# via librosa
|
| 33 |
+
exceptiongroup==1.3.0
|
| 34 |
+
# via anyio
|
| 35 |
+
fastapi==0.115.13
|
| 36 |
+
# via gradio
|
| 37 |
+
ffmpy==0.6.0
|
| 38 |
+
# via gradio
|
| 39 |
+
filelock==3.18.0
|
| 40 |
+
# via
|
| 41 |
+
# huggingface-hub
|
| 42 |
+
# torch
|
| 43 |
+
# transformers
|
| 44 |
+
# triton
|
| 45 |
+
fsspec==2025.5.1
|
| 46 |
+
# via
|
| 47 |
+
# gradio-client
|
| 48 |
+
# huggingface-hub
|
| 49 |
+
# torch
|
| 50 |
+
gradio==5.34.2
|
| 51 |
+
# via
|
| 52 |
+
# command-a-reasoning-08-2025 (pyproject.toml)
|
| 53 |
+
# spaces
|
| 54 |
+
gradio-client==1.10.3
|
| 55 |
+
# via gradio
|
| 56 |
+
groovy==0.1.2
|
| 57 |
+
# via gradio
|
| 58 |
+
h11==0.16.0
|
| 59 |
+
# via
|
| 60 |
+
# httpcore
|
| 61 |
+
# uvicorn
|
| 62 |
+
hf-transfer==0.1.9
|
| 63 |
+
# via command-a-reasoning-08-2025 (pyproject.toml)
|
| 64 |
+
hf-xet==1.1.5
|
| 65 |
+
# via huggingface-hub
|
| 66 |
+
httpcore==1.0.9
|
| 67 |
+
# via httpx
|
| 68 |
+
httpx==0.28.1
|
| 69 |
+
# via
|
| 70 |
+
# gradio
|
| 71 |
+
# gradio-client
|
| 72 |
+
# safehttpx
|
| 73 |
+
# spaces
|
| 74 |
+
huggingface-hub==0.33.0
|
| 75 |
+
# via
|
| 76 |
+
# accelerate
|
| 77 |
+
# gradio
|
| 78 |
+
# gradio-client
|
| 79 |
+
# timm
|
| 80 |
+
# tokenizers
|
| 81 |
+
# transformers
|
| 82 |
+
idna==3.10
|
| 83 |
+
# via
|
| 84 |
+
# anyio
|
| 85 |
+
# httpx
|
| 86 |
+
# requests
|
| 87 |
+
jinja2==3.1.6
|
| 88 |
+
# via
|
| 89 |
+
# gradio
|
| 90 |
+
# torch
|
| 91 |
+
joblib==1.5.1
|
| 92 |
+
# via
|
| 93 |
+
# librosa
|
| 94 |
+
# scikit-learn
|
| 95 |
+
lazy-loader==0.4
|
| 96 |
+
# via librosa
|
| 97 |
+
librosa==0.11.0
|
| 98 |
+
# via command-a-reasoning-08-2025 (pyproject.toml)
|
| 99 |
+
llvmlite==0.44.0
|
| 100 |
+
# via numba
|
| 101 |
+
markdown-it-py==3.0.0
|
| 102 |
+
# via rich
|
| 103 |
+
markupsafe==3.0.2
|
| 104 |
+
# via
|
| 105 |
+
# gradio
|
| 106 |
+
# jinja2
|
| 107 |
+
mdurl==0.1.2
|
| 108 |
+
# via markdown-it-py
|
| 109 |
+
mpmath==1.3.0
|
| 110 |
+
# via sympy
|
| 111 |
+
msgpack==1.1.1
|
| 112 |
+
# via librosa
|
| 113 |
+
networkx==3.4.2
|
| 114 |
+
# via torch
|
| 115 |
+
numba==0.61.2
|
| 116 |
+
# via librosa
|
| 117 |
+
numpy==2.2.6
|
| 118 |
+
# via
|
| 119 |
+
# accelerate
|
| 120 |
+
# gradio
|
| 121 |
+
# librosa
|
| 122 |
+
# numba
|
| 123 |
+
# pandas
|
| 124 |
+
# scikit-learn
|
| 125 |
+
# scipy
|
| 126 |
+
# soundfile
|
| 127 |
+
# soxr
|
| 128 |
+
# torchvision
|
| 129 |
+
# transformers
|
| 130 |
+
nvidia-cublas-cu12==12.4.5.8
|
| 131 |
+
# via
|
| 132 |
+
# nvidia-cudnn-cu12
|
| 133 |
+
# nvidia-cusolver-cu12
|
| 134 |
+
# torch
|
| 135 |
+
nvidia-cuda-cupti-cu12==12.4.127
|
| 136 |
+
# via torch
|
| 137 |
+
nvidia-cuda-nvrtc-cu12==12.4.127
|
| 138 |
+
# via torch
|
| 139 |
+
nvidia-cuda-runtime-cu12==12.4.127
|
| 140 |
+
# via torch
|
| 141 |
+
nvidia-cudnn-cu12==9.1.0.70
|
| 142 |
+
# via torch
|
| 143 |
+
nvidia-cufft-cu12==11.2.1.3
|
| 144 |
+
# via torch
|
| 145 |
+
nvidia-curand-cu12==10.3.5.147
|
| 146 |
+
# via torch
|
| 147 |
+
nvidia-cusolver-cu12==11.6.1.9
|
| 148 |
+
# via torch
|
| 149 |
+
nvidia-cusparse-cu12==12.3.1.170
|
| 150 |
+
# via
|
| 151 |
+
# nvidia-cusolver-cu12
|
| 152 |
+
# torch
|
| 153 |
+
nvidia-nccl-cu12==2.21.5
|
| 154 |
+
# via torch
|
| 155 |
+
nvidia-nvjitlink-cu12==12.4.127
|
| 156 |
+
# via
|
| 157 |
+
# nvidia-cusolver-cu12
|
| 158 |
+
# nvidia-cusparse-cu12
|
| 159 |
+
# torch
|
| 160 |
+
nvidia-nvtx-cu12==12.4.127
|
| 161 |
+
# via torch
|
| 162 |
+
orjson==3.10.18
|
| 163 |
+
# via gradio
|
| 164 |
+
packaging==25.0
|
| 165 |
+
# via
|
| 166 |
+
# accelerate
|
| 167 |
+
# gradio
|
| 168 |
+
# gradio-client
|
| 169 |
+
# huggingface-hub
|
| 170 |
+
# lazy-loader
|
| 171 |
+
# pooch
|
| 172 |
+
# spaces
|
| 173 |
+
# transformers
|
| 174 |
+
pandas==2.3.0
|
| 175 |
+
# via gradio
|
| 176 |
+
pillow==11.2.1
|
| 177 |
+
# via
|
| 178 |
+
# gradio
|
| 179 |
+
# torchvision
|
| 180 |
+
platformdirs==4.3.8
|
| 181 |
+
# via pooch
|
| 182 |
+
pooch==1.8.2
|
| 183 |
+
# via librosa
|
| 184 |
+
psutil==5.9.8
|
| 185 |
+
# via
|
| 186 |
+
# accelerate
|
| 187 |
+
# spaces
|
| 188 |
+
pycparser==2.22
|
| 189 |
+
# via cffi
|
| 190 |
+
pydantic==2.11.7
|
| 191 |
+
# via
|
| 192 |
+
# fastapi
|
| 193 |
+
# gradio
|
| 194 |
+
# spaces
|
| 195 |
+
pydantic-core==2.33.2
|
| 196 |
+
# via pydantic
|
| 197 |
+
pydub==0.25.1
|
| 198 |
+
# via gradio
|
| 199 |
+
pygments==2.19.2
|
| 200 |
+
# via rich
|
| 201 |
+
python-dateutil==2.9.0.post0
|
| 202 |
+
# via pandas
|
| 203 |
+
python-multipart==0.0.20
|
| 204 |
+
# via gradio
|
| 205 |
+
pytz==2025.2
|
| 206 |
+
# via pandas
|
| 207 |
+
pyyaml==6.0.2
|
| 208 |
+
# via
|
| 209 |
+
# accelerate
|
| 210 |
+
# gradio
|
| 211 |
+
# huggingface-hub
|
| 212 |
+
# timm
|
| 213 |
+
# transformers
|
| 214 |
+
regex==2024.11.6
|
| 215 |
+
# via transformers
|
| 216 |
+
requests==2.32.4
|
| 217 |
+
# via
|
| 218 |
+
# huggingface-hub
|
| 219 |
+
# pooch
|
| 220 |
+
# spaces
|
| 221 |
+
# transformers
|
| 222 |
+
rich==14.0.0
|
| 223 |
+
# via typer
|
| 224 |
+
ruff==0.12.0
|
| 225 |
+
# via gradio
|
| 226 |
+
safehttpx==0.1.6
|
| 227 |
+
# via gradio
|
| 228 |
+
safetensors==0.5.3
|
| 229 |
+
# via
|
| 230 |
+
# accelerate
|
| 231 |
+
# timm
|
| 232 |
+
# transformers
|
| 233 |
+
scikit-learn==1.7.0
|
| 234 |
+
# via librosa
|
| 235 |
+
scipy==1.15.3
|
| 236 |
+
# via
|
| 237 |
+
# librosa
|
| 238 |
+
# scikit-learn
|
| 239 |
+
semantic-version==2.10.0
|
| 240 |
+
# via gradio
|
| 241 |
+
shellingham==1.5.4
|
| 242 |
+
# via typer
|
| 243 |
+
six==1.17.0
|
| 244 |
+
# via python-dateutil
|
| 245 |
+
sniffio==1.3.1
|
| 246 |
+
# via anyio
|
| 247 |
+
soundfile==0.13.1
|
| 248 |
+
# via librosa
|
| 249 |
+
soxr==0.5.0.post1
|
| 250 |
+
# via librosa
|
| 251 |
+
spaces==0.37.1
|
| 252 |
+
# via command-a-reasoning-08-2025 (pyproject.toml)
|
| 253 |
+
starlette==0.46.2
|
| 254 |
+
# via
|
| 255 |
+
# fastapi
|
| 256 |
+
# gradio
|
| 257 |
+
sympy==1.13.1
|
| 258 |
+
# via torch
|
| 259 |
+
threadpoolctl==3.6.0
|
| 260 |
+
# via scikit-learn
|
| 261 |
+
timm==1.0.16
|
| 262 |
+
# via command-a-reasoning-08-2025 (pyproject.toml)
|
| 263 |
+
tokenizers==0.21.2
|
| 264 |
+
# via transformers
|
| 265 |
+
tomlkit==0.13.3
|
| 266 |
+
# via gradio
|
| 267 |
+
torch==2.5.1
|
| 268 |
+
# via
|
| 269 |
+
# command-a-reasoning-08-2025 (pyproject.toml)
|
| 270 |
+
# accelerate
|
| 271 |
+
# timm
|
| 272 |
+
# torchvision
|
| 273 |
+
torchvision==0.20.1
|
| 274 |
+
# via
|
| 275 |
+
# command-a-reasoning-08-2025 (pyproject.toml)
|
| 276 |
+
# timm
|
| 277 |
+
tqdm==4.67.1
|
| 278 |
+
# via
|
| 279 |
+
# huggingface-hub
|
| 280 |
+
# transformers
|
| 281 |
+
transformers==4.53.0
|
| 282 |
+
# via command-a-reasoning-08-2025 (pyproject.toml)
|
| 283 |
+
triton==3.1.0
|
| 284 |
+
# via torch
|
| 285 |
+
typer==0.16.0
|
| 286 |
+
# via gradio
|
| 287 |
+
typing-extensions==4.14.0
|
| 288 |
+
# via
|
| 289 |
+
# anyio
|
| 290 |
+
# exceptiongroup
|
| 291 |
+
# fastapi
|
| 292 |
+
# gradio
|
| 293 |
+
# gradio-client
|
| 294 |
+
# huggingface-hub
|
| 295 |
+
# librosa
|
| 296 |
+
# pydantic
|
| 297 |
+
# pydantic-core
|
| 298 |
+
# rich
|
| 299 |
+
# spaces
|
| 300 |
+
# torch
|
| 301 |
+
# typer
|
| 302 |
+
# typing-inspection
|
| 303 |
+
# uvicorn
|
| 304 |
+
typing-inspection==0.4.1
|
| 305 |
+
# via pydantic
|
| 306 |
+
tzdata==2025.2
|
| 307 |
+
# via pandas
|
| 308 |
+
urllib3==2.5.0
|
| 309 |
+
# via requests
|
| 310 |
+
uvicorn==0.34.3
|
| 311 |
+
# via gradio
|
| 312 |
+
websockets==15.0.1
|
| 313 |
+
# via gradio-client
|
| 314 |
+
cohere==5.16.1
|
style.css
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
h1 {
|
| 2 |
+
text-align: center;
|
| 3 |
+
display: block;
|
| 4 |
+
}
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|