geronimo-pericoli commited on
Commit
319eac2
·
verified ·
1 Parent(s): 7d05402

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py CHANGED
@@ -77,6 +77,28 @@ for source, rel_path in SOURCES.items():
77
 
78
 
79
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
 
81
 
82
  arxiv_tool = ArxivToolSpec(max_results=5).to_tool_list()[0]
 
77
 
78
 
79
 
80
+ ##### LOAD SPACES METADATA #####
81
+ SPACES_JSON_PATH = Path("./spaces.json")
82
+
83
+ # Cargar metadatos de spaces
84
+ def load_spaces_metadata():
85
+ try:
86
+ with open(SPACES_JSON_PATH, 'r', encoding='utf-8') as f:
87
+ return json.load(f)
88
+ except Exception as e:
89
+ print(f"Error cargando spaces.json: {str(e)}")
90
+ return {"spaces": []}
91
+
92
+ spaces_metadata = load_spaces_metadata()
93
+
94
+ # Diccionario para cachear conexiones a spaces
95
+ space_clients: Dict[str, Client] = {}
96
+
97
+
98
+
99
+
100
+
101
+
102
 
103
 
104
  arxiv_tool = ArxivToolSpec(max_results=5).to_tool_list()[0]