removed flask

This commit is contained in:
Saifeddine ALOUI 2024-01-29 23:16:24 +01:00
parent b6f54182da
commit dda12c411a
9 changed files with 3 additions and 4717 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,9 +5,7 @@
# Supported by Nomic-AI
# license : Apache 2.0
# Description :
# A front end Flask application for llamacpp models.
# The official LOLLMS Web ui
# Made by the community for the community
# Configuration management tool
######
import yaml

2646
app_old.py

File diff suppressed because it is too large Load Diff

@ -1 +1 @@
Subproject commit feeae2441113aa7f88d3f3e305ff7692acdeabb1
Subproject commit b5de353df365b18250518bc486cc80eb2aefe82c

View File

@ -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 flask import request
from datetime import datetime
from api.db import DiscussionsDB, Discussion
from pathlib import Path

View File

@ -1,9 +1,6 @@
setuptools
pyyaml
numpy
flask
flask_socketio
flask_compress
gevent-websocket
websocket-client
eventlet

View File

@ -1,7 +1,5 @@
tqdm
psutil
flask
flask_socketio
pytest
pyyaml
markdown

View File

@ -6,34 +6,6 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
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.
process.env = {...process.env, ...loadEnv(mode, process.cwd())};

@ -1 +1 @@
Subproject commit c1702841b3f72f367ead691b67f02fc06cf2d7a6
Subproject commit 3915951920cf483388360e0b890019e938ec516b