awacke1 commited on
Commit
3610e97
·
1 Parent(s): b631c17

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +9 -0
index.html CHANGED
@@ -8,6 +8,15 @@
8
  </head>
9
  <body>
10
  <script src="https://whitphx.github.io/stlite/lib/application/stlite.js"></script>
 
 
 
 
 
 
 
 
 
11
  <div class="card">
12
  <h1>STLITE in an HTML5 Page Web App to Run Streamlit</h1>
13
  <p>
 
8
  </head>
9
  <body>
10
  <script src="https://whitphx.github.io/stlite/lib/application/stlite.js"></script>
11
+ <script>
12
+ stlite.mount({
13
+ mainScriptData: `
14
+ import streamlit as st
15
+ name=st.text_input("Name")
16
+ st.write("Hello, ", name or "world")
17
+ `
18
+ })
19
+ </script>
20
  <div class="card">
21
  <h1>STLITE in an HTML5 Page Web App to Run Streamlit</h1>
22
  <p>