Skip to content

Commit

Permalink
Revert sample code that is not compatible with the feature yet
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Jul 26, 2024
1 parent 2c8686c commit 47929f9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import streamlit as st
import time
import asyncio


def cook_breakfast():
async def cook_breakfast():
msg = st.toast("Gathering ingredients...")
time.sleep(1)
await asyncio.sleep(1)
msg.toast("Cooking...")
time.sleep(1)
await asyncio.sleep(1)
msg.toast("Ready!", icon="🥞")


if st.button("Cook breakfast"):
cook_breakfast()
await cook_breakfast()

0 comments on commit 47929f9

Please sign in to comment.