Skip to content

Commit 8308951

Browse files
First release
1 parent 015e115 commit 8308951

8 files changed

+57
-4
lines changed

.DS_Store

2 KB
Binary file not shown.

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Here's how you can use `apple-ocr`:
3939
2. **Initialization**: Create an instance of the `OCR` class, providing an image to be processed.
4040

4141
```python
42-
from hci import Speech2Interact
42+
from balena.hci import Speech2Interact
4343

4444
actions = {
4545
"validate": [
@@ -60,7 +60,6 @@ instance = Speech2Interact(
6060
sentence_similarity_model="sentence-transformers/all-mpnet-base-v2"
6161
)
6262

63-
6463
action = instance.recognize_speech(
6564
duration=3
6665
)

pyproject.toml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[project]
2+
name = "balena-cpu"
3+
version = "1.0.0"
4+
description = "BALanced Execution through Natural Activation : a human-computer interaction methodology for code running."
5+
readme = "README.md"
6+
keywords = ["transformers", "speech-recognition", "text-extraction", "execution", "speech-to-text", "NLP", "sentence-similarity", "speech-to-function", "sentence-transformers", "wav2vec2"]
7+
classifiers = [
8+
"Programming Language :: Python",
9+
"Programming Language :: Python :: 3",
10+
"Intended Audience :: Education",
11+
"Intended Audience :: Science/Research",
12+
"License :: OSI Approved :: Apache Software License",
13+
"Topic :: Scientific/Engineering",
14+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
15+
"Topic :: Software Development",
16+
"Topic :: Software Development :: Libraries",
17+
"Topic :: Software Development :: Libraries :: Python Modules"
18+
]
19+
20+
[build-system]
21+
requires = ["setuptools>=61.0"]
22+
build-backend = "setuptools.build_meta"
23+
24+
[options]
25+
packages = ["find:"]
26+
install_requires = [
27+
"faiss-cpu",
28+
"numpy",
29+
"scipy",
30+
"sentence_transformers",
31+
"nltk",
32+
"pyaudio",
33+
"torch",
34+
"transformers"
35+
]
36+
37+
[metadata]
38+
name = "balena-cpu"
39+
version = "1.0.0"
40+
license = "Apache License 2.0"
41+
author = "Louis Brulé Naudet"
42+
author_email = "[email protected]"
43+
description = "BALanced Execution through Natural Activation : a human-computer interaction methodology for code running."
44+
long_description = "file: README.md"
45+
long_description_content_type = "text/markdown"
46+
url = "https://github.com/louisbrulenaudet/balena"
47+
homepage = "https://github.com/louisbrulenaudet/balena"
48+
project_urls = {repository = "https://github.com/louisbrulenaudet/balena"}
49+
keywords = "transformers, speech-recognition, text-extraction, execution, speech-to-text, NLP, sentence-similarity, speech-to-function, sentence-transformers, wav2vec2"

src/.DS_Store

6 KB
Binary file not shown.

src/balena/.DS_Store

6 KB
Binary file not shown.

src/balena/__init__.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# __init__.py
2+
3+
# This file can be empty, or you can define package-level variables or settings here.
4+
# For example, you might define a variable like this:
5+
# version = "1.0.0"

embeddings.py src/balena/embeddings.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
# See the License for the specific language governing permissions and
99
# limitations under the License.
1010

11+
import os
12+
1113
import faiss
1214
import logging
1315
import numpy as np
14-
import os
15-
import pandas as pd
1616

1717
import scipy.spatial.distance as distance
1818
from sentence_transformers import SentenceTransformer

hci.py src/balena/hci.py

File renamed without changes.

0 commit comments

Comments
 (0)