awacke1 commited on
Commit
ab62d2b
1 Parent(s): 24d6aa2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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 = []