mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Colab fix
This commit is contained in:
@@ -2619,8 +2619,6 @@ def load_model(use_gpu=True, gpu_layers=None, disk_layers=None, initial_load=Fal
|
||||
def index():
|
||||
if args.no_ui:
|
||||
return redirect('/api/latest')
|
||||
if 'new_ui' in request.args:
|
||||
return render_template('index_new.html', hide_ai_menu=args.noaimenu)
|
||||
else:
|
||||
return render_template('index.html', hide_ai_menu=args.noaimenu, flaskwebgui=koboldai_vars.flaskwebgui)
|
||||
@app.route('/api', strict_slashes=False)
|
||||
|
@@ -762,6 +762,10 @@ class system_settings(settings):
|
||||
self.theme_list = [".".join(f.split(".")[:-1]) for f in os.listdir("./themes") if os.path.isfile(os.path.join("./themes", f))]
|
||||
self.cloudflare_link = ""
|
||||
self.story_loads = {} #dict of when each story was last loaded
|
||||
self.standalone = False
|
||||
self.disable_set_aibusy = False
|
||||
self.disable_input_formatting = False
|
||||
self.disable_output_formatting = False
|
||||
self.port = 5000
|
||||
self.on_colab = 'google.colab' in sys.modules
|
||||
self.horde_share = False
|
||||
|
Reference in New Issue
Block a user