pequeños cambios

This commit is contained in:
2025-09-16 03:20:51 +02:00
parent 1c8f4ce79f
commit 1deabb8a26
3 changed files with 65 additions and 329 deletions
File diff suppressed because one or more lines are too long
+4 -8
View File
@@ -1,6 +1,6 @@
import marimo
__generated_with = "0.15.3"
__generated_with = "0.15.5"
app = marimo.App(width="columns")
@@ -229,7 +229,6 @@ def _():
repo_id="nomic-ai/nomic-embed-text-v1.5",
local_dir=".model/nomic-embed-text-v1.5"
)
return
@@ -257,7 +256,6 @@ def _():
for text, _vector in zip(texts, embeddings):
print(f"Texto: {text}\nDimensión: {_vector.shape[0]}\nPrimeros valores: {_vector[:5].tolist()}\n")
return model, tokenizer, torch
@@ -415,7 +413,7 @@ def _():
def _(mo):
_df = mo.sql(
f"""
SELECT * FROM
SELECT * FROM
"""
)
return
@@ -469,7 +467,6 @@ def _(mo):
# Caja de texto para la consulta
query_input = mo.ui.text(label="Texto de búsqueda", full_width=True)
query_input
return (query_input,)
@@ -492,7 +489,6 @@ def _(model, query_input, tokenizer, torch):
embedding_str = None
embedding_str
return (embedding_str,)
@@ -516,10 +512,10 @@ def _(
host=HOST,
port=PUERTO_POSTGRES
)
conn3.autocommit = True
_cur = conn3.cursor()
_cur.execute(
"""
SELECT id, titulo, embedding <#> %s::vector AS distancia
Generated
+3 -3
View File
@@ -202,7 +202,7 @@ wheels = [
[[package]]
name = "marimo"
version = "0.15.3"
version = "0.15.5"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "click" },
@@ -224,9 +224,9 @@ dependencies = [
{ name = "uvicorn" },
{ name = "websockets" },
]
sdist = { url = "https://files.pythonhosted.org/packages/d5/a9/a5f39815e93688219fcad5604e14578c2dec54447370f9ec79256c4d01dc/marimo-0.15.3.tar.gz", hash = "sha256:110e90229381b963349b0a9ec33177ad700e73e76c20b500ed60d082c81ba0c5", size = 31720473, upload-time = "2025-09-11T17:55:31.892Z" }
sdist = { url = "https://files.pythonhosted.org/packages/63/47/e9bb4f87b14f745765aa70856c0c03326704c02771f74f7e245107ba2956/marimo-0.15.5.tar.gz", hash = "sha256:71a66d30e840efb7a59ef06a0deabf22f47ae723fe80fbdd0bc9db1aad555193", size = 33506642, upload-time = "2025-09-15T18:01:53.053Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/97/bb/e922181c69207b3eea4717f74fcdf806b4a5669caa7e31b0b7a9c5e30c1b/marimo-0.15.3-py3-none-any.whl", hash = "sha256:199c55bbc369db64dc20a1ed98814bfea321820acdabb7e01b262fea8f46507d", size = 31965498, upload-time = "2025-09-11T17:55:26.796Z" },
{ url = "https://files.pythonhosted.org/packages/4c/97/4bfb1eaf08af0aa41851ebc207f1813ca8423067a1382a61c11472599693/marimo-0.15.5-py3-none-any.whl", hash = "sha256:87a8c7f4023c40c91d229ea8edb038dcb13eca41c4c3e074050a863ed39b2770", size = 33894087, upload-time = "2025-09-15T18:01:48.674Z" },
]
[[package]]