Spaces:
Runtime error
Runtime error
File size: 475 Bytes
8ad9e26 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
from modules.presets import API_URL
class State:
interrupted = False
api_url = API_URL
def interrupt(self):
self.interrupted = True
def recover(self):
self.interrupted = False
def set_api_url(self, api_url):
self.api_url = api_url
def reset_api_url(self):
self.api_url = API_URL
return self.api_url
def reset_all(self):
self.interrupted = False
self.api_url = API_URL
state = State()
|