mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-18 20:17:50 +00:00
updated
This commit is contained in:
parent
d92a6c026f
commit
664a45414c
4
app.py
4
app.py
@ -24,6 +24,7 @@ import io
|
||||
import sys
|
||||
import time
|
||||
import traceback
|
||||
import webbrowser
|
||||
|
||||
def run_update_script(args=None):
|
||||
update_script = "update_script.py"
|
||||
@ -2030,6 +2031,9 @@ if __name__ == "__main__":
|
||||
else:
|
||||
print(f"Please open your browser and go to {url} to view the ui")
|
||||
|
||||
# if autoshow
|
||||
if config.auto_show_browser:
|
||||
webbrowser.open(f"http://{config['host']}:{config['port']}")
|
||||
socketio.run(app, host=config["host"], port=config["port"],
|
||||
# prevent error: The Werkzeug web server is not designed to run in production
|
||||
allow_unsafe_werkzeug=True)
|
||||
|
@ -1,5 +1,5 @@
|
||||
# =================== Lord Of Large Language Models Configuration file ===========================
|
||||
version: 21
|
||||
version: 22
|
||||
binding_name: null
|
||||
model_name: null
|
||||
|
||||
@ -41,6 +41,8 @@ auto_update: true
|
||||
auto_save: true
|
||||
# Enables gpu usage
|
||||
enable_gpu: true
|
||||
# Automatically open the browser
|
||||
auto_show_browser: true
|
||||
|
||||
# Audio
|
||||
audio_in_language: 'en-US'
|
||||
|
@ -603,6 +603,22 @@
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="min-width: 200px;">
|
||||
<label for="auto_show_browser" class="text-sm font-bold" style="margin-right: 1rem;">Auto show browser:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input
|
||||
type="checkbox"
|
||||
id="auto_show_browser"
|
||||
required
|
||||
v-model="configFile.auto_show_browser"
|
||||
@change="settingsChanged=true"
|
||||
class="m-2 h-50 w-50 py-1 border border-gray-300 rounded dark:bg-gray-600 "
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style="min-width: 200px;">
|
||||
<label for="enable_gpu" class="text-sm font-bold" style="margin-right: 1rem;">Enable GPU:</label>
|
||||
|
Loading…
Reference in New Issue
Block a user