mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
removed flask
This commit is contained in:
parent
b6f54182da
commit
dda12c411a
2032
api/__init__.py
2032
api/__init__.py
File diff suppressed because it is too large
Load Diff
@ -5,9 +5,7 @@
|
|||||||
# Supported by Nomic-AI
|
# Supported by Nomic-AI
|
||||||
# license : Apache 2.0
|
# license : Apache 2.0
|
||||||
# Description :
|
# Description :
|
||||||
# A front end Flask application for llamacpp models.
|
# Configuration management tool
|
||||||
# The official LOLLMS Web ui
|
|
||||||
# Made by the community for the community
|
|
||||||
######
|
######
|
||||||
import yaml
|
import yaml
|
||||||
|
|
||||||
|
2646
app_old.py
2646
app_old.py
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
|||||||
Subproject commit feeae2441113aa7f88d3f3e305ff7692acdeabb1
|
Subproject commit b5de353df365b18250518bc486cc80eb2aefe82c
|
@ -7,7 +7,6 @@ This class provides a singleton instance of the LoLLMS web UI, allowing access t
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from lollms.server.elf_server import LOLLMSElfServer
|
from lollms.server.elf_server import LOLLMSElfServer
|
||||||
from flask import request
|
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from api.db import DiscussionsDB, Discussion
|
from api.db import DiscussionsDB, Discussion
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
setuptools
|
setuptools
|
||||||
pyyaml
|
pyyaml
|
||||||
numpy
|
numpy
|
||||||
flask
|
|
||||||
flask_socketio
|
|
||||||
flask_compress
|
|
||||||
gevent-websocket
|
gevent-websocket
|
||||||
websocket-client
|
websocket-client
|
||||||
eventlet
|
eventlet
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
tqdm
|
tqdm
|
||||||
psutil
|
psutil
|
||||||
flask
|
|
||||||
flask_socketio
|
|
||||||
pytest
|
pytest
|
||||||
pyyaml
|
pyyaml
|
||||||
markdown
|
markdown
|
||||||
|
@ -6,34 +6,6 @@ import vue from '@vitejs/plugin-vue'
|
|||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default async ({ mode }) => {
|
export default async ({ mode }) => {
|
||||||
/*
|
|
||||||
async function getFlaskServerURL() {
|
|
||||||
try {
|
|
||||||
console.log("Loading")
|
|
||||||
const response = await fetch('/get_server_address'); // Replace with the actual endpoint on your Flask server
|
|
||||||
const serverAddress = await response.text();
|
|
||||||
if(serverAddress.includes('<') || !serverAddress.startsWith("http")){
|
|
||||||
console.log(`Server address not found`)
|
|
||||||
return process.env.VITE_LOLLMS_API
|
|
||||||
|
|
||||||
}
|
|
||||||
console.log(`Server address: ${serverAddress}`)
|
|
||||||
return `${serverAddress}`; // Construct the full server address dynamically
|
|
||||||
} catch (error) {
|
|
||||||
// console.error('Error fetching server address:', error);
|
|
||||||
// Handle error if necessary
|
|
||||||
return process.env.VITE_LOLLMS_API
|
|
||||||
}
|
|
||||||
}
|
|
||||||
let serverURL = undefined;
|
|
||||||
try{
|
|
||||||
serverURL = await getFlaskServerURL()
|
|
||||||
console.log(serverURL)
|
|
||||||
}catch{
|
|
||||||
serverURL = process.env.VITE_LOLLMS_API
|
|
||||||
console.log(`Server address: ${serverAddress}`)
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
// Load app-level env vars to node-level env vars.
|
// Load app-level env vars to node-level env vars.
|
||||||
process.env = {...process.env, ...loadEnv(mode, process.cwd())};
|
process.env = {...process.env, ...loadEnv(mode, process.cwd())};
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit c1702841b3f72f367ead691b67f02fc06cf2d7a6
|
Subproject commit 3915951920cf483388360e0b890019e938ec516b
|
Loading…
Reference in New Issue
Block a user