Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -248,7 +248,6 @@ Response must be valid JSON with this structure:
|
|
248 |
"""
|
249 |
return html_content
|
250 |
|
251 |
-
# Remove the @gr.cache_examples decorator since it's not supported
|
252 |
def explore(query: str, path_history: str = "[]", parameters: str = "{}", depth: int = 5, domain: str = "") -> tuple:
|
253 |
"""Generate exploration path and visualization"""
|
254 |
try:
|
@@ -277,8 +276,8 @@ def explore(query: str, path_history: str = "[]", parameters: str = "{}", depth:
|
|
277 |
exploration_parameters=exploration_parameters
|
278 |
)
|
279 |
|
280 |
-
# Create visualization
|
281 |
-
graph_html = create_interactive_graph(result.get('nodes', []))
|
282 |
|
283 |
# Initial summary
|
284 |
summary = "Click on nodes in the graph to see detailed information"
|
|
|
248 |
"""
|
249 |
return html_content
|
250 |
|
|
|
251 |
def explore(query: str, path_history: str = "[]", parameters: str = "{}", depth: int = 5, domain: str = "") -> tuple:
|
252 |
"""Generate exploration path and visualization"""
|
253 |
try:
|
|
|
276 |
exploration_parameters=exploration_parameters
|
277 |
)
|
278 |
|
279 |
+
# Create visualization - Fixed: Using the generator instance method
|
280 |
+
graph_html = generator.create_interactive_graph(result.get('nodes', []))
|
281 |
|
282 |
# Initial summary
|
283 |
summary = "Click on nodes in the graph to see detailed information"
|