Giter VIP home page Giter VIP logo

Comments (4)

dhuynh95 avatar dhuynh95 commented on June 15, 2024

One person I talked to suggested we read information from an environment variable to know if the client should discuss with a simulation or hardware backend. I think default behavior should be simulation so that it always works but with a warning.

If the user wants to talk to a hardware backend, we could ask them to specify an environment variable like BLINDAI_CERTIFICATES which could point to a folder where there is a certificate and a policy file. If this environment variable does not exist or the folder is empty, it would go to simulation mode.

This way we can provide the same API everywhere.

What do you guys think @cchudant @JoFrost ?

from blindai.

cchudant avatar cchudant commented on June 15, 2024

I don't know whether this is a good idea.
This feels strange to me and not typical of library like that.

I think it's better to have simulation=True/False on connect?

As for the notebook examples, I think we should remove the hardware one and just have a comment where you need to change True to False?

from blindai.

dhuynh95 avatar dhuynh95 commented on June 15, 2024

Ok yeah true, maybe just remove hardware / software notebooks and put comments.

What do you think of getting the certificate and policy from env variable?

from blindai.

clauverjat avatar clauverjat commented on June 15, 2024

Closing since #56 solves the issue

from blindai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.