Skip to content

mag1art/DbrainApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The project for use Dbrain.io Api and Handl.ai.

For install use the nuget package .

dotnet add package DbrainApi

Basic methods

  • classify
  • recognize
  • result

For example:

void Execute()
{
    Console.WriteLine("Write token:");
    var token = Console.ReadLine();

    if (string.IsNullOrWhiteSpace(token)) 
        return;

    Console.WriteLine("Write path to file:");
    var path = Console.ReadLine();

    if (string.IsNullOrWhiteSpace(path)) 
        return;
    if (!File.Exists(path)) 
        return;

    var content = File.ReadAllBytes(path);
    var json = new DbrainApi.DbrainApi(token).Classify(content);

    Console.WriteLine(json);
}

Releases

No releases published

Packages

No packages published

Languages