File size: 376 Bytes
9c093a9
 
 
 
6774799
9c093a9
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit.components.v1 as components
import os

_component_func = components.declare_component(
    "subtitle_editor",
    path=os.path.join(os.path.dirname(os.path.abspath(__file__)))
)

def subtitle_editor(initial_document, key=None):
    component_value = _component_func(
        initial_document=initial_document,
        key=key,
    )
    return component_value