Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

DinosLib-IA-Integration

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Project Flow

image

Project Configuration

To run this project, some configurations are necessary:

Prerequisites

BASS

Download the sources here: https://www.un4seen.com/ Include bass.pas in the project and bass.dll along with the executable (for this project, the Bass sources are already included).

Conda

PyTorch

Installation with CUDA 11.8:

bash
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=11.8 -c pytorch -c nvidia
bash
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=12.1 -c pytorch -c nvidia
bash
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 cpuonly -c pytorch

Chocolatey

bash
Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.
bash
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

ffmpeg

  • Install ffmpeg:
bash
choco install ffmpeg

Whisper

  • Install Whisper:
bash
pip install -U openai-whisper
bash
pip install --upgrade --no-deps --force-reinstall git+https://github.com/openai/whisper.git

Delphi OpenAI

Install the Delphi OpenAI library: Installation Guide: https://platform.openai.com/docs/libraries/community-libraries

Generate API Key

Generate it HERE: https://platform.openai.com/api-keys Add the API_KEY in the file Dinos.Bridge.GPT.Open.IA. image

Midware

  • To use separately in your project, utilize the midwares.
  • Add the midware to the project.

image

To run the "Zé Notinha" project, the installation of Fortes Report and ACBr is required.

Fortes https://github.com/fortesinformatica/fortesreport-ce

ACBr https://github.com/ProjetoACBr/ACBr

Otherwise, you can run the test project.


Additional Notes

Material about this project https://www.canva.com/design/DAGeDMAtEeI/yqwJUz2lkixw-B6_t-OSOQ/edit?utm_content=DAGeDMAtEeI&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton