Saugatkafley commited on
Commit
8d85050
1 Parent(s): 8aae26a

st:spinner()

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -3,6 +3,8 @@ import streamlit as st
3
  from dotenv import load_dotenv
4
  from Bard import Chatbot
5
  import asyncio
 
 
6
 
7
  loop = asyncio.new_event_loop()
8
  asyncio.set_event_loop(loop)
@@ -72,7 +74,9 @@ def prompt_letter():
72
  "I am passionate about...",
73
  "solving problems at the intersection of technology and social good.",
74
  )
75
- # make a loading bar using tqdm
 
 
76
 
77
  submit_button = st.form_submit_button(label="Submit")
78
 
 
3
  from dotenv import load_dotenv
4
  from Bard import Chatbot
5
  import asyncio
6
+ import tqdm
7
+ import time
8
 
9
  loop = asyncio.new_event_loop()
10
  asyncio.set_event_loop(loop)
 
74
  "I am passionate about...",
75
  "solving problems at the intersection of technology and social good.",
76
  )
77
+ # make progress bar using stremalit
78
+ with st.spinner("Please wait..."):
79
+ time.sleep(1)
80
 
81
  submit_button = st.form_submit_button(label="Submit")
82