enpaiva commited on
Commit
a5ac299
1 Parent(s): f54e5c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -31,11 +31,13 @@ llm = Llama(model_path="model.gguf",
31
  n_ctx=512,
32
  n_threads=2)
33
 
34
- DOC_PATH = "./think-paraguayo-space-aux/index"
35
 
36
- print(os.getcwd())
 
 
37
 
38
- documents = SimpleDirectoryReader(input_files=["./think-paraguayo-space-aux/libro.txt"]).load_data()
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="./think-paraguayo-space-aux/think_paraguayo.jpeg", type="filepath", label="Imagen Estática")
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():