CHSTR commited on
Commit
c6bf1a7
1 Parent(s): afdbdc8

actualizando el app

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -24,6 +24,7 @@ import os
24
  # No reconoce la carpeta que esta dos niveles abajo src
25
  from src.model_LN_prompt import Model
26
  from src.options import opts
 
27
 
28
 
29
  DEBUG = False
@@ -58,7 +59,12 @@ else:
58
 
59
  @st.cache_resource
60
  def load():
61
- path_images = 'data/doc_explore/DocExplore_images/'
 
 
 
 
 
62
  path_model = hf_hub_download(repo_id="CHSTR/DocExplore", filename="epoch=16-mAP=0.66_triplet.ckpt")#"models/epoch=16-mAP=0.66_triplet.ckpt"
63
 
64
  model = Model()
 
24
  # No reconoce la carpeta que esta dos niveles abajo src
25
  from src.model_LN_prompt import Model
26
  from src.options import opts
27
+ from datasets import load_dataset
28
 
29
 
30
  DEBUG = False
 
59
 
60
  @st.cache_resource
61
  def load():
62
+ # Descargamos el dataset
63
+ dataset = load_dataset("CHSTR/doc_explore")
64
+ local_dir = "./"
65
+ dataset.save_to_disk(local_dir)
66
+
67
+ path_images = 'data/'
68
  path_model = hf_hub_download(repo_id="CHSTR/DocExplore", filename="epoch=16-mAP=0.66_triplet.ckpt")#"models/epoch=16-mAP=0.66_triplet.ckpt"
69
 
70
  model = Model()