From 7c2d7412478bfe721df9c0a17e4163c3a0806897 Mon Sep 17 00:00:00 2001 From: saloui Date: Wed, 12 Jul 2023 09:36:45 +0200 Subject: [PATCH] update --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 39cf3323..bb69dab8 100644 --- a/app.py +++ b/app.py @@ -41,8 +41,6 @@ from flask import ( stream_with_context, send_from_directory ) -from tkinter import Tk -from tkinter.filedialog import askopenfilename from flask_socketio import SocketIO, emit from pathlib import Path @@ -840,6 +838,9 @@ class LoLLMsWebUI(LoLLMsAPPI): }) def install_model_from_path(self): + from tkinter import Tk + from tkinter.filedialog import askopenfilename + ASCIIColors.info(f"- Selecting model ...") # Define the file types filetypes = [