Spaces:
Paused
Paused
Download src/template_editor/__init__.py from francozanardi/pycaps: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/spaces/francozanardi/pycaps/resolve/main/src/template_editor/__init__.py
- Command line
-
hf download hf://spaces/francozanardi/pycaps/src/template_editor/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/francozanardi/pycaps/resolve/main/src/template_editor/__init__.py
363 Bytes
| import streamlit.components.v1 as components | |
| import os | |
| _component_func = components.declare_component( | |
| "template_editor", | |
| path=os.path.join(os.path.dirname(os.path.abspath(__file__))) | |
| ) | |
| def template_editor(json, css, key=None): | |
| component_value = _component_func( | |
| json=json, | |
| css=css, | |
| key=key, | |
| ) | |
| return component_value | |