Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,11 +31,13 @@ llm = Llama(model_path="model.gguf",
|
|
| 31 |
n_ctx=512,
|
| 32 |
n_threads=2)
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
|
| 38 |
-
documents = SimpleDirectoryReader(input_files=["
|
| 39 |
|
| 40 |
parser = SentenceSplitter(chunk_size=128, chunk_overlap=64)
|
| 41 |
nodes = parser.get_nodes_from_documents(
|
|
@@ -131,7 +133,7 @@ def launcher():
|
|
| 131 |
|
| 132 |
with gr.Row(variant='panel'):
|
| 133 |
with gr.Column(scale=1):
|
| 134 |
-
gr.Image(value="
|
| 135 |
|
| 136 |
with gr.Column(scale=1):
|
| 137 |
# with gr.Row():
|
|
|
|
| 31 |
n_ctx=512,
|
| 32 |
n_threads=2)
|
| 33 |
|
| 34 |
+
BASE_PATH = "/home/user/app/think-paraguayo-space-aux/"
|
| 35 |
|
| 36 |
+
DOC_PATH = BASE_PATH+"index"
|
| 37 |
+
|
| 38 |
+
print(os.listdir())
|
| 39 |
|
| 40 |
+
documents = SimpleDirectoryReader(input_files=[BASE_PATH+"libro.txt"]).load_data()
|
| 41 |
|
| 42 |
parser = SentenceSplitter(chunk_size=128, chunk_overlap=64)
|
| 43 |
nodes = parser.get_nodes_from_documents(
|
|
|
|
| 133 |
|
| 134 |
with gr.Row(variant='panel'):
|
| 135 |
with gr.Column(scale=1):
|
| 136 |
+
gr.Image(value=BASE_PATH+"think_paraguayo.jpeg", type="filepath", label="Imagen Estática")
|
| 137 |
|
| 138 |
with gr.Column(scale=1):
|
| 139 |
# with gr.Row():
|