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,7 +243,8 @@ class model_settings(settings):
|
|||||||
else:
|
else:
|
||||||
self.tqdm.update(1)
|
self.tqdm.update(1)
|
||||||
self.tqdm_progress = int(float(self.generated_tkns)/float(self.genamt)*100)
|
self.tqdm_progress = int(float(self.generated_tkns)/float(self.genamt)*100)
|
||||||
self.tqdm_rem_time = str(datetime.timedelta(seconds=int(float(self.genamt-self.generated_tkns)/self.tqdm.format_dict['rate'])))
|
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
|
#Setup TQDP for model loading
|
||||||
if name == "loaded_layers" and 'tqdm' in self.__dict__:
|
if name == "loaded_layers" and 'tqdm' in self.__dict__:
|
||||||
if value == 0:
|
if value == 0:
|
||||||
|
@@ -13,7 +13,7 @@ def client_data():
|
|||||||
app = aiserver.app
|
app = aiserver.app
|
||||||
#app.test_client_class = FlaskLoginClient
|
#app.test_client_class = FlaskLoginClient
|
||||||
client_conn = app.test_client()
|
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
|
#Clear out the connection message
|
||||||
response = socketio_client.get_received()
|
response = socketio_client.get_received()
|
||||||
return (client_conn, app, socketio_client)
|
return (client_conn, app, socketio_client)
|
||||||
|
Reference in New Issue
Block a user