Spaces:
Sleeping
Sleeping
Keith Bourne commited on
Commit ·
65ec262
1
Parent(s): 492b682
Add google sheets test fix
Browse files
app.py
CHANGED
|
@@ -5,16 +5,16 @@ from streamlit_gsheets import GSheetsConnection
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
# example of secret access
|
| 8 |
-
spreadsheet = os.environ['spreadsheet']
|
| 9 |
|
| 10 |
# Create a connection object.
|
| 11 |
-
conn = st.connection("gsheets", type=GSheetsConnection)
|
| 12 |
|
| 13 |
-
df = conn.read(spreadsheet=spreadsheet, usecols=[0, 1])
|
| 14 |
|
| 15 |
# Print results.
|
| 16 |
-
for row in df.itertuples():
|
| 17 |
-
|
| 18 |
|
| 19 |
st.title("Basic Streamlit App")
|
| 20 |
name = st.text_input("Enter your name", '')
|
|
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
# example of secret access
|
| 8 |
+
# spreadsheet = os.environ['spreadsheet']
|
| 9 |
|
| 10 |
# Create a connection object.
|
| 11 |
+
# conn = st.connection("gsheets", type=GSheetsConnection)
|
| 12 |
|
| 13 |
+
# df = conn.read(spreadsheet=spreadsheet, usecols=[0, 1])
|
| 14 |
|
| 15 |
# Print results.
|
| 16 |
+
# for row in df.itertuples():
|
| 17 |
+
# st.write(f"{row.name} has a :{row.pet}:")
|
| 18 |
|
| 19 |
st.title("Basic Streamlit App")
|
| 20 |
name = st.text_input("Enter your name", '')
|