mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
fix
This commit is contained in:
@@ -243,6 +243,7 @@ class model_settings(settings):
|
||||
else:
|
||||
self.tqdm.update(1)
|
||||
self.tqdm_progress = int(float(self.generated_tkns)/float(self.genamt)*100)
|
||||
if self.tqdm.format_dict['rate'] is not None:
|
||||
self.tqdm_rem_time = str(datetime.timedelta(seconds=int(float(self.genamt-self.generated_tkns)/self.tqdm.format_dict['rate'])))
|
||||
#Setup TQDP for model loading
|
||||
if name == "loaded_layers" and 'tqdm' in self.__dict__:
|
||||
|
@@ -13,7 +13,7 @@ def client_data():
|
||||
app = aiserver.app
|
||||
#app.test_client_class = FlaskLoginClient
|
||||
client_conn = app.test_client()
|
||||
socketio_client = aiserver.socketio.test_client(app, flask_test_client=client_conn)
|
||||
socketio_client = aiserver.socketio.test_client(app, flask_test_client=client_conn, query_string="ui=1")
|
||||
#Clear out the connection message
|
||||
response = socketio_client.get_received()
|
||||
return (client_conn, app, socketio_client)
|
||||
|
Reference in New Issue
Block a user