Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
louisbrulenaudet committed Jan 29, 2024
1 parent 015e115 commit 8308951
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Here's how you can use `apple-ocr`:
2. **Initialization**: Create an instance of the `OCR` class, providing an image to be processed.

```python
from hci import Speech2Interact
from balena.hci import Speech2Interact

actions = {
"validate": [
Expand All @@ -60,7 +60,6 @@ instance = Speech2Interact(
sentence_similarity_model="sentence-transformers/all-mpnet-base-v2"
)


action = instance.recognize_speech(
duration=3
)
Expand Down
49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[project]
name = "balena-cpu"
version = "1.0.0"
description = "BALanced Execution through Natural Activation : a human-computer interaction methodology for code running."
readme = "README.md"
keywords = ["transformers", "speech-recognition", "text-extraction", "execution", "speech-to-text", "NLP", "sentence-similarity", "speech-to-function", "sentence-transformers", "wav2vec2"]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules"
]

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[options]
packages = ["find:"]
install_requires = [
"faiss-cpu",
"numpy",
"scipy",
"sentence_transformers",
"nltk",
"pyaudio",
"torch",
"transformers"
]

[metadata]
name = "balena-cpu"
version = "1.0.0"
license = "Apache License 2.0"
author = "Louis Brulé Naudet"
author_email = "louisbrulenaudet@icloud.com"
description = "BALanced Execution through Natural Activation : a human-computer interaction methodology for code running."
long_description = "file: README.md"
long_description_content_type = "text/markdown"
url = "https://github.com/louisbrulenaudet/balena"
homepage = "https://github.com/louisbrulenaudet/balena"
project_urls = {repository = "https://github.com/louisbrulenaudet/balena"}
keywords = "transformers, speech-recognition, text-extraction, execution, speech-to-text, NLP, sentence-similarity, speech-to-function, sentence-transformers, wav2vec2"
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/balena/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions src/balena/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# __init__.py

# This file can be empty, or you can define package-level variables or settings here.
# For example, you might define a variable like this:
# version = "1.0.0"
4 changes: 2 additions & 2 deletions embeddings.py → src/balena/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import os

import faiss
import logging
import numpy as np
import os
import pandas as pd

import scipy.spatial.distance as distance
from sentence_transformers import SentenceTransformer
Expand Down
File renamed without changes.

0 comments on commit 8308951

Please sign in to comment.