mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
9 lines
189 B
Python
9 lines
189 B
Python
def clean_input(prompt: str=''):
|
|
try:
|
|
return input(prompt)
|
|
except KeyboardInterrupt:
|
|
print("You interrupted Auto-GPT")
|
|
print("Quitting...")
|
|
exit(0)
|
|
|