Comments (4)
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.
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.
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.
Closing since #56 solves the issue
from blindai.
Related Issues (20)
- No information anymore about the jupyter notebook examples HOT 3
- Whisper example missing NNDecodingTask definition HOT 2
- DecodeError: Error parsing message with type 'onnx.ModelProto'
- Handle the case where the returned quote status is STATUS_TCB_SW_HARDENING_NEEDED
- Undefined behavior when using binding to QPL in the runner
- Adding model card to each AI API
- Undefined Parameter in docs/docs/how-to-guides/covid_net_confidential.ipynb HOT 1
- Erroneous positional argument in docs/docs/how-to-guides/covid_net_confidential.ipynb HOT 1
- Add FAQ
- Move telemetry to client-side HOT 2
- Automate the generation of the client API reference HOT 2
- Execution times HOT 1
- Failed to load model, the model or the input format are perhaps invalid HOT 2
- Docs: Which hardware should you pick to get started?
- Client notebook docker does not seem to work on WSL HOT 1
- Connection Error: client.connect_server(..) - Hardware mode - CovidNet Example HOT 4
- [Question] How to use multiple inputs for model? HOT 5
- Remove CBOR dependency HOT 3
- client: Accept numpy/torch tensors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blindai.