Finalized
This commit is contained in:
parent
ef61b926a1
commit
8e131c2847
7 changed files with 10 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,10 +1,12 @@
|
|||
# env
|
||||
.env
|
||||
*venv/
|
||||
**/__pycache__/
|
||||
|
||||
# Binaries for installation
|
||||
*.deb
|
||||
*.whl
|
||||
.install/
|
||||
|
||||
# Test data
|
||||
data/pgvector.sql
|
||||
|
|
BIN
pipeline.indexing.png
Normal file
BIN
pipeline.indexing.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 34 KiB |
Before ![]() (image error) Size: 126 KiB After ![]() (image error) Size: 126 KiB ![]() ![]() |
Binary file not shown.
|
@ -1,7 +1,9 @@
|
|||
import pathlib
|
||||
|
||||
from gevent.pywsgi import WSGIServer
|
||||
from flask import Flask, request, render_template
|
||||
from tabulate import tabulate
|
||||
|
||||
from flask import Flask, request, render_template
|
||||
from wtforms import Form, StringField, SubmitField
|
||||
from wtforms.validators import DataRequired
|
||||
|
||||
|
@ -47,5 +49,6 @@ def query_backend():
|
|||
|
||||
return backend.format_for_api(result)
|
||||
|
||||
http_server = WSGIServer(("0.0.0.0", 8000), app)
|
||||
http_server.serve_forever()
|
||||
if __name__ == "__main__":
|
||||
http_server = WSGIServer(("0.0.0.0", 8000), app)
|
||||
http_server.serve_forever()
|
||||
|
|
|
@ -27,7 +27,7 @@ class AIBackend:
|
|||
document_store: PgvectorDocumentStore
|
||||
documents: list[Document] = []
|
||||
|
||||
def __init__(self, load_dataset = False):
|
||||
def __init__(self, load_dataset=False):
|
||||
get_torch_info()
|
||||
try:
|
||||
self.gpu = ComponentDevice.from_str("cuda:0")
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
flex-direction: column;
|
||||
position: relative;
|
||||
width: 220px;
|
||||
height: 250px;
|
||||
height: 275px;
|
||||
border: 2px solid #b86cff;
|
||||
margin: 1rem;
|
||||
justify-items: flex-start;
|
||||
|
|
Loading…
Add table
Reference in a new issue