LennardZuendorf's picture
feat/fixing: correcting bug, updating documentation (final?)
a597c76 unverified

A newer version of the Gradio SDK is available: 5.23.2

Upgrade

gradio iFrame

This is a custom gradio component used to display the shap package text plot. Which is interactive HTML and needs a custom wrapper. See custom component examples at official docu

Credit

CREDIT: based mostly of Gradio template component, HTML see: https://www.gradio.app/docs/html

Changes

Addition/changes are marked. Everything else can be considered the work of other (the Gradio Team)

Changes Files/Contributions

  • backend/iframe.py - updating component to accept custom height/width and added new example
  • demo/app.py - slightly changed demo file for better dev experience
  • frontend/index.svelte - slightly changed to accept custom height/width
  • frontend/HTML.svelte - updated to use iFrame and added custom function to programmatically set height values