Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -72,6 +72,11 @@ headers = {
|
|
72 |
}
|
73 |
|
74 |
|
|
|
|
|
|
|
|
|
|
|
75 |
# 2.🚲BikeAI🏆 Initialize session states
|
76 |
if 'transcript_history' not in st.session_state:
|
77 |
st.session_state.transcript_history = []
|
|
|
72 |
}
|
73 |
|
74 |
|
75 |
+
# Component Magic
|
76 |
+
mycomponent = components.declare_component("mycomponent", path="mycomponent") # load from __init__.py and index.html in mycomponent folder
|
77 |
+
from mycomponent import mycomponentvalue - mycomponent(my_input_value="hello there")
|
78 |
+
st.write("Received", value)
|
79 |
+
|
80 |
# 2.🚲BikeAI🏆 Initialize session states
|
81 |
if 'transcript_history' not in st.session_state:
|
82 |
st.session_state.transcript_history = []
|