mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2025-12-28 15:17:53 +01:00
14 lines
272 B
Python
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()
|