jkorstad commited on
Commit
14d08b7
·
verified ·
1 Parent(s): cb57dca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -68,14 +68,14 @@ for space_info in spaces:
68
  print(f"Failed to load predefined tool from {repo_id}. Error: {str(e)}. Continuing with available tools.")
69
 
70
  # Load tools from a Hugging Face Collection
71
- collection_slug = "jkorstad/tools-680127d17eed47e759549ff4"
72
- try:
73
  # Added trust_remote_code=True
74
- collection = ToolCollection.from_hub(collection_slug=collection_slug, trust_remote_code=True)
75
- tools.extend(collection.tools)
76
- print(f"Successfully loaded tools from collection: {collection_slug}")
77
- except Exception as e:
78
- print(f"Warning: Failed to load collection {collection_slug}. Error: {str(e)}")
79
 
80
 
81
  # Tool for searching Hugging Face Spaces
 
68
  print(f"Failed to load predefined tool from {repo_id}. Error: {str(e)}. Continuing with available tools.")
69
 
70
  # Load tools from a Hugging Face Collection
71
+ #collection_slug = "jkorstad/tools-680127d17eed47e759549ff4"
72
+ #try:
73
  # Added trust_remote_code=True
74
+ # collection = ToolCollection.from_hub(collection_slug=collection_slug, trust_remote_code=True)
75
+ # tools.extend(collection.tools)
76
+ # print(f"Successfully loaded tools from collection: {collection_slug}")
77
+ #except Exception as e:
78
+ # print(f"Warning: Failed to load collection {collection_slug}. Error: {str(e)}")
79
 
80
 
81
  # Tool for searching Hugging Face Spaces