Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,13 @@ def display_table():
|
|
50 |
(10, "π", "What's the most useless talent you have?", "[Wikipedia](https://en.wikipedia.org/wiki/Talent_(human))"),
|
51 |
]
|
52 |
|
53 |
-
|
54 |
-
|
|
|
55 |
|
|
|
|
|
|
|
56 |
|
57 |
def update_vote_log(term, vote_type):
|
58 |
with open('vote.log.txt', 'a') as f:
|
|
|
50 |
(10, "π", "What's the most useless talent you have?", "[Wikipedia](https://en.wikipedia.org/wiki/Talent_(human))"),
|
51 |
]
|
52 |
|
53 |
+
df=pd.DataFrame(data, columns=['Question', 'Emoji', 'Title', 'Description'])
|
54 |
+
|
55 |
+
#st.table(df) # simplest dataframe view
|
56 |
|
57 |
+
edited_df = st.data_editor(df) # robust df editor
|
58 |
+
#favorite_command = edited_df.loc[edited_df["rating"].idxmax()]["command"]
|
59 |
+
#st.markdown(f"Your favorite command is **{favorite_command}** π")
|
60 |
|
61 |
def update_vote_log(term, vote_type):
|
62 |
with open('vote.log.txt', 'a') as f:
|