new stuff
Some checks failed
Gitea Docker Redeploy / Redploy-App-on-self-via-SSH (push) Failing after 8m11s
Some checks failed
Gitea Docker Redeploy / Redploy-App-on-self-via-SSH (push) Failing after 8m11s
This commit is contained in:
parent
ba9427326b
commit
1c36707eab
3
.gitignore
vendored
3
.gitignore
vendored
@ -7,4 +7,7 @@ deployment/ollama
|
||||
deployment/data
|
||||
deployment/logs
|
||||
|
||||
#next.js
|
||||
frontend/node_modules
|
||||
frontend/.next
|
||||
|
||||
|
@ -5,7 +5,7 @@ ARG DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update -y
|
||||
RUN apt-get install -y python3 python3-pip
|
||||
RUN apt-get install -y firefox curl ffmpeg espeak flite
|
||||
|
||||
RUN apt-get install -y tesseract-ocr
|
||||
|
||||
#install "apt-add-repository" command:
|
||||
RUN apt-get -y install software-properties-common dirmngr apt-transport-https lsb-release ca-certificates
|
||||
|
@ -30,9 +30,10 @@ from lib.speech import text_to_speech
|
||||
from lib.mail import send_mail
|
||||
from lib.user import hash_password, create_user, create_default_users
|
||||
|
||||
from fastapi import FastAPI
|
||||
|
||||
from fastapi import FastAPI, WebSocket, WebSocketDisconnect
|
||||
from fastapi.responses import HTMLResponse
|
||||
from fastapi_socketio import SocketManager
|
||||
from chainlit.utils import mount_chainlit
|
||||
|
||||
from jinja2 import Environment, FileSystemLoader
|
||||
|
||||
@ -54,7 +55,29 @@ assert jwt_secret
|
||||
|
||||
|
||||
app = FastAPI()
|
||||
socket_manager = SocketManager(app=app)
|
||||
|
||||
#app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
app.mount("/", StaticFiles(directory="public"), name="public")
|
||||
|
||||
|
||||
mount_chainlit(app=app, target="my_cl_app.py", path="/chainlit")
|
||||
|
||||
|
||||
|
||||
#@app.get("/")
|
||||
#async def root():
|
||||
# return HTMLResponse(html)
|
||||
|
||||
|
||||
@app.websocket("/ws")
|
||||
async def websocket_endpoint(websocket: WebSocket):
|
||||
await websocket.accept()
|
||||
while True:
|
||||
data = await websocket.receive_text()
|
||||
await websocket.send_text(f"Message text was: {data}")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -148,11 +171,7 @@ def job_search(js: JobSearch):
|
||||
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
template = env.get_template('index.twig')
|
||||
html = template.render()
|
||||
return HTMLResponse(html)
|
||||
|
||||
|
||||
|
||||
|
||||
|
6
backend/my_cl_app.py
Normal file
6
backend/my_cl_app.py
Normal file
@ -0,0 +1,6 @@
|
||||
import chainlit as cl
|
||||
|
||||
@cl.on_chat_start
|
||||
async def main():
|
||||
await cl.Message(content="Hello World").send()
|
||||
|
0
backend/public/codemirror_widget.js
Executable file → Normal file
0
backend/public/codemirror_widget.js
Executable file → Normal file
@ -397,7 +397,7 @@
|
||||
<br>
|
||||
|
||||
<label for="change_bot_rag_text_name">Text:</label>
|
||||
<textarea id="change_bot_rag_text" class="form-control" rows="16" name="change_bot_rag_text_name" placeholder="A text that contains information used for the bot's answers.'"></textarea>
|
||||
<textarea id="change_bot_rag_text" class="form-control" rows="16" maxlength='3000' name="change_bot_rag_text_name" placeholder="A text that contains information used for the bot's answers.'"></textarea>
|
||||
|
||||
<br>
|
||||
|
||||
|
0
backend/public/lib/codemirror.css
Executable file → Normal file
0
backend/public/lib/codemirror.css
Executable file → Normal file
0
backend/public/lib/codemirror.js
Executable file → Normal file
0
backend/public/lib/codemirror.js
Executable file → Normal file
0
backend/public/main.js
Executable file → Normal file
0
backend/public/main.js
Executable file → Normal file
0
backend/public/mode/apl/apl.js
Executable file → Normal file
0
backend/public/mode/apl/apl.js
Executable file → Normal file
0
backend/public/mode/apl/index.html
Executable file → Normal file
0
backend/public/mode/apl/index.html
Executable file → Normal file
0
backend/public/mode/asciiarmor/asciiarmor.js
Executable file → Normal file
0
backend/public/mode/asciiarmor/asciiarmor.js
Executable file → Normal file
0
backend/public/mode/asciiarmor/index.html
Executable file → Normal file
0
backend/public/mode/asciiarmor/index.html
Executable file → Normal file
0
backend/public/mode/asn.1/asn.1.js
Executable file → Normal file
0
backend/public/mode/asn.1/asn.1.js
Executable file → Normal file
0
backend/public/mode/asn.1/index.html
Executable file → Normal file
0
backend/public/mode/asn.1/index.html
Executable file → Normal file
0
backend/public/mode/asterisk/asterisk.js
Executable file → Normal file
0
backend/public/mode/asterisk/asterisk.js
Executable file → Normal file
0
backend/public/mode/asterisk/index.html
Executable file → Normal file
0
backend/public/mode/asterisk/index.html
Executable file → Normal file
0
backend/public/mode/brainfuck/brainfuck.js
Executable file → Normal file
0
backend/public/mode/brainfuck/brainfuck.js
Executable file → Normal file
0
backend/public/mode/brainfuck/index.html
Executable file → Normal file
0
backend/public/mode/brainfuck/index.html
Executable file → Normal file
0
backend/public/mode/clike/clike.js
Executable file → Normal file
0
backend/public/mode/clike/clike.js
Executable file → Normal file
0
backend/public/mode/clike/index.html
Executable file → Normal file
0
backend/public/mode/clike/index.html
Executable file → Normal file
0
backend/public/mode/clike/scala.html
Executable file → Normal file
0
backend/public/mode/clike/scala.html
Executable file → Normal file
0
backend/public/mode/clike/test.js
Executable file → Normal file
0
backend/public/mode/clike/test.js
Executable file → Normal file
0
backend/public/mode/clojure/clojure.js
Executable file → Normal file
0
backend/public/mode/clojure/clojure.js
Executable file → Normal file
0
backend/public/mode/clojure/index.html
Executable file → Normal file
0
backend/public/mode/clojure/index.html
Executable file → Normal file
0
backend/public/mode/clojure/test.js
Executable file → Normal file
0
backend/public/mode/clojure/test.js
Executable file → Normal file
0
backend/public/mode/cmake/cmake.js
Executable file → Normal file
0
backend/public/mode/cmake/cmake.js
Executable file → Normal file
0
backend/public/mode/cmake/index.html
Executable file → Normal file
0
backend/public/mode/cmake/index.html
Executable file → Normal file
0
backend/public/mode/cobol/cobol.js
Executable file → Normal file
0
backend/public/mode/cobol/cobol.js
Executable file → Normal file
0
backend/public/mode/cobol/index.html
Executable file → Normal file
0
backend/public/mode/cobol/index.html
Executable file → Normal file
0
backend/public/mode/coffeescript/coffeescript.js
Executable file → Normal file
0
backend/public/mode/coffeescript/coffeescript.js
Executable file → Normal file
0
backend/public/mode/coffeescript/index.html
Executable file → Normal file
0
backend/public/mode/coffeescript/index.html
Executable file → Normal file
0
backend/public/mode/commonlisp/commonlisp.js
Executable file → Normal file
0
backend/public/mode/commonlisp/commonlisp.js
Executable file → Normal file
0
backend/public/mode/commonlisp/index.html
Executable file → Normal file
0
backend/public/mode/commonlisp/index.html
Executable file → Normal file
0
backend/public/mode/crystal/crystal.js
Executable file → Normal file
0
backend/public/mode/crystal/crystal.js
Executable file → Normal file
0
backend/public/mode/crystal/index.html
Executable file → Normal file
0
backend/public/mode/crystal/index.html
Executable file → Normal file
0
backend/public/mode/css/css.js
Executable file → Normal file
0
backend/public/mode/css/css.js
Executable file → Normal file
0
backend/public/mode/css/gss.html
Executable file → Normal file
0
backend/public/mode/css/gss.html
Executable file → Normal file
0
backend/public/mode/css/gss_test.js
Executable file → Normal file
0
backend/public/mode/css/gss_test.js
Executable file → Normal file
0
backend/public/mode/css/index.html
Executable file → Normal file
0
backend/public/mode/css/index.html
Executable file → Normal file
0
backend/public/mode/css/less.html
Executable file → Normal file
0
backend/public/mode/css/less.html
Executable file → Normal file
0
backend/public/mode/css/less_test.js
Executable file → Normal file
0
backend/public/mode/css/less_test.js
Executable file → Normal file
0
backend/public/mode/css/scss.html
Executable file → Normal file
0
backend/public/mode/css/scss.html
Executable file → Normal file
0
backend/public/mode/css/scss_test.js
Executable file → Normal file
0
backend/public/mode/css/scss_test.js
Executable file → Normal file
0
backend/public/mode/css/test.js
Executable file → Normal file
0
backend/public/mode/css/test.js
Executable file → Normal file
0
backend/public/mode/cypher/cypher.js
Executable file → Normal file
0
backend/public/mode/cypher/cypher.js
Executable file → Normal file
0
backend/public/mode/cypher/index.html
Executable file → Normal file
0
backend/public/mode/cypher/index.html
Executable file → Normal file
0
backend/public/mode/cypher/test.js
Executable file → Normal file
0
backend/public/mode/cypher/test.js
Executable file → Normal file
0
backend/public/mode/d/d.js
Executable file → Normal file
0
backend/public/mode/d/d.js
Executable file → Normal file
0
backend/public/mode/d/index.html
Executable file → Normal file
0
backend/public/mode/d/index.html
Executable file → Normal file
0
backend/public/mode/d/test.js
Executable file → Normal file
0
backend/public/mode/d/test.js
Executable file → Normal file
0
backend/public/mode/dart/dart.js
Executable file → Normal file
0
backend/public/mode/dart/dart.js
Executable file → Normal file
0
backend/public/mode/dart/index.html
Executable file → Normal file
0
backend/public/mode/dart/index.html
Executable file → Normal file
0
backend/public/mode/diff/diff.js
Executable file → Normal file
0
backend/public/mode/diff/diff.js
Executable file → Normal file
0
backend/public/mode/diff/index.html
Executable file → Normal file
0
backend/public/mode/diff/index.html
Executable file → Normal file
0
backend/public/mode/django/django.js
Executable file → Normal file
0
backend/public/mode/django/django.js
Executable file → Normal file
0
backend/public/mode/django/index.html
Executable file → Normal file
0
backend/public/mode/django/index.html
Executable file → Normal file
0
backend/public/mode/dockerfile/dockerfile.js
Executable file → Normal file
0
backend/public/mode/dockerfile/dockerfile.js
Executable file → Normal file
0
backend/public/mode/dockerfile/index.html
Executable file → Normal file
0
backend/public/mode/dockerfile/index.html
Executable file → Normal file
0
backend/public/mode/dockerfile/test.js
Executable file → Normal file
0
backend/public/mode/dockerfile/test.js
Executable file → Normal file
0
backend/public/mode/dtd/dtd.js
Executable file → Normal file
0
backend/public/mode/dtd/dtd.js
Executable file → Normal file
0
backend/public/mode/dtd/index.html
Executable file → Normal file
0
backend/public/mode/dtd/index.html
Executable file → Normal file
0
backend/public/mode/dylan/dylan.js
Executable file → Normal file
0
backend/public/mode/dylan/dylan.js
Executable file → Normal file
0
backend/public/mode/dylan/index.html
Executable file → Normal file
0
backend/public/mode/dylan/index.html
Executable file → Normal file
0
backend/public/mode/dylan/test.js
Executable file → Normal file
0
backend/public/mode/dylan/test.js
Executable file → Normal file
0
backend/public/mode/ebnf/ebnf.js
Executable file → Normal file
0
backend/public/mode/ebnf/ebnf.js
Executable file → Normal file
0
backend/public/mode/ebnf/index.html
Executable file → Normal file
0
backend/public/mode/ebnf/index.html
Executable file → Normal file
0
backend/public/mode/ecl/ecl.js
Executable file → Normal file
0
backend/public/mode/ecl/ecl.js
Executable file → Normal file
0
backend/public/mode/ecl/index.html
Executable file → Normal file
0
backend/public/mode/ecl/index.html
Executable file → Normal file
0
backend/public/mode/eiffel/eiffel.js
Executable file → Normal file
0
backend/public/mode/eiffel/eiffel.js
Executable file → Normal file
0
backend/public/mode/eiffel/index.html
Executable file → Normal file
0
backend/public/mode/eiffel/index.html
Executable file → Normal file
0
backend/public/mode/elm/elm.js
Executable file → Normal file
0
backend/public/mode/elm/elm.js
Executable file → Normal file
0
backend/public/mode/elm/index.html
Executable file → Normal file
0
backend/public/mode/elm/index.html
Executable file → Normal file
0
backend/public/mode/erlang/erlang.js
Executable file → Normal file
0
backend/public/mode/erlang/erlang.js
Executable file → Normal file
0
backend/public/mode/erlang/index.html
Executable file → Normal file
0
backend/public/mode/erlang/index.html
Executable file → Normal file
0
backend/public/mode/factor/factor.js
Executable file → Normal file
0
backend/public/mode/factor/factor.js
Executable file → Normal file
0
backend/public/mode/factor/index.html
Executable file → Normal file
0
backend/public/mode/factor/index.html
Executable file → Normal file
0
backend/public/mode/fcl/fcl.js
Executable file → Normal file
0
backend/public/mode/fcl/fcl.js
Executable file → Normal file
0
backend/public/mode/fcl/index.html
Executable file → Normal file
0
backend/public/mode/fcl/index.html
Executable file → Normal file
0
backend/public/mode/forth/forth.js
Executable file → Normal file
0
backend/public/mode/forth/forth.js
Executable file → Normal file
0
backend/public/mode/forth/index.html
Executable file → Normal file
0
backend/public/mode/forth/index.html
Executable file → Normal file
0
backend/public/mode/fortran/fortran.js
Executable file → Normal file
0
backend/public/mode/fortran/fortran.js
Executable file → Normal file
0
backend/public/mode/fortran/index.html
Executable file → Normal file
0
backend/public/mode/fortran/index.html
Executable file → Normal file
0
backend/public/mode/gas/gas.js
Executable file → Normal file
0
backend/public/mode/gas/gas.js
Executable file → Normal file
0
backend/public/mode/gas/index.html
Executable file → Normal file
0
backend/public/mode/gas/index.html
Executable file → Normal file
0
backend/public/mode/gfm/gfm.js
Executable file → Normal file
0
backend/public/mode/gfm/gfm.js
Executable file → Normal file
0
backend/public/mode/gfm/index.html
Executable file → Normal file
0
backend/public/mode/gfm/index.html
Executable file → Normal file
0
backend/public/mode/gfm/test.js
Executable file → Normal file
0
backend/public/mode/gfm/test.js
Executable file → Normal file
0
backend/public/mode/gherkin/gherkin.js
Executable file → Normal file
0
backend/public/mode/gherkin/gherkin.js
Executable file → Normal file
0
backend/public/mode/gherkin/index.html
Executable file → Normal file
0
backend/public/mode/gherkin/index.html
Executable file → Normal file
0
backend/public/mode/go/go.js
Executable file → Normal file
0
backend/public/mode/go/go.js
Executable file → Normal file
0
backend/public/mode/go/index.html
Executable file → Normal file
0
backend/public/mode/go/index.html
Executable file → Normal file
0
backend/public/mode/groovy/groovy.js
Executable file → Normal file
0
backend/public/mode/groovy/groovy.js
Executable file → Normal file
0
backend/public/mode/groovy/index.html
Executable file → Normal file
0
backend/public/mode/groovy/index.html
Executable file → Normal file
0
backend/public/mode/haml/haml.js
Executable file → Normal file
0
backend/public/mode/haml/haml.js
Executable file → Normal file
0
backend/public/mode/haml/index.html
Executable file → Normal file
0
backend/public/mode/haml/index.html
Executable file → Normal file
0
backend/public/mode/haml/test.js
Executable file → Normal file
0
backend/public/mode/haml/test.js
Executable file → Normal file
0
backend/public/mode/handlebars/handlebars.js
Executable file → Normal file
0
backend/public/mode/handlebars/handlebars.js
Executable file → Normal file
0
backend/public/mode/handlebars/index.html
Executable file → Normal file
0
backend/public/mode/handlebars/index.html
Executable file → Normal file
0
backend/public/mode/haskell-literate/haskell-literate.js
Executable file → Normal file
0
backend/public/mode/haskell-literate/haskell-literate.js
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user