Update index.html
Browse files- 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>
|