You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/pilot/utils/spinner.py

14 lines
272 B
Python

from yaspin import yaspin
from yaspin.spinners import Spinners
def spinner_start(text="Processing..."):
spinner = yaspin(Spinners.line, text=text)
spinner.start()
return spinner
def spinner_stop(spinner):
if spinner is not None:
spinner.stop()