Spaces:
Runtime error
Runtime error
File size: 552 Bytes
931abd0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import streamlit as st
import time
def toaster_messages(func: callable):
def wrapper():
msg = st.toast("Uploading PDF...")
time.sleep(8)
msg.toast("Converting PDF into small chunks...")
time.sleep(8)
msg.toast("Breaking down chunks into tokens...")
time.sleep(8)
msg.toast("Creating embeddging vectors...")
time.sleep(8)
msg.toast("Creating vector store...")
time.sleep(8)
msg.toast("Vector store created successfully!")
func()
return wrapper
|