Giter Club home page Giter Club logo

Comments (1)

jameswex avatar jameswex commented on June 8, 2024

In WIT, the querying of the model on the datapoints is done through python code that executes behind the html, powering what is displayed. So we cannot return HTML from WitWidget that can be rendered in a separate webpage.

If you want to embed WIT in a webpage, you can use it inside of an instance of TensorBoard you run (which itself is a webpage). WIT in TensorBoard will soon support custom predict functions, as can be seen in #94

Or you could add WIT code to your own web server's front-end and add code to your web server to run the model and pass the results back to the front-end WIT HTML. That will require a bunch of glue code in your front-end html/js code and your web server, but it is doable. Our web demos (https://github.com/PAIR-code/what-if-tool/tree/master/wit_dashboard/demo) are one example of embedding WIT directly in a webpage, but in those cases, we run the models in the browser using TensorFlow.js models, so our web demos don't require a backend.

from what-if-tool.

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.