Spaces:
Runtime error
Runtime error
Add example submission
Browse files
app.py
CHANGED
|
@@ -55,6 +55,11 @@ with st.form(key="form"):
|
|
| 55 |
data = str(uploaded_file.read(), "utf-8")
|
| 56 |
json_data = json.loads(data)
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
token = st.text_input(
|
| 59 |
"Access token",
|
| 60 |
type="password",
|
|
|
|
| 55 |
data = str(uploaded_file.read(), "utf-8")
|
| 56 |
json_data = json.loads(data)
|
| 57 |
|
| 58 |
+
with st.expander("Example submission"):
|
| 59 |
+
with open("submission.json", "r") as f:
|
| 60 |
+
example_submission = json.load(f)
|
| 61 |
+
st.json(example_submission)
|
| 62 |
+
|
| 63 |
token = st.text_input(
|
| 64 |
"Access token",
|
| 65 |
type="password",
|