Spaces:
Running
Running
Create speech_component/__init__.py
Browse files
speech_component/__init__.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pathlib import Path
|
2 |
+
import streamlit.components.v1 as components
|
3 |
+
|
4 |
+
# Declare the component
|
5 |
+
_COMPONENT_PATH = Path(__file__).parent
|
6 |
+
mycomponent = components.declare_component(
|
7 |
+
"speech_component",
|
8 |
+
path=str(_COMPONENT_PATH)
|
9 |
+
)
|