chibuikeeugene commited on
Commit
2512471
·
1 Parent(s): 81917a3

new modules created

Browse files
Files changed (8) hide show
  1. .DS_Store +0 -0
  2. .gitignore +1 -0
  3. .vscode/settings.json +4 -0
  4. README.md +5 -1
  5. agent.py +1 -0
  6. prompt_template.py +0 -0
  7. requirements.txt +6 -1
  8. tools.py +8 -0
.DS_Store ADDED
Binary file (6.15 kB). View file
 
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ *.env
.vscode/settings.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "python.analysis.autoImportCompletions": true,
3
+ "python.analysis.typeCheckingMode": "standard"
4
+ }
README.md CHANGED
@@ -12,4 +12,8 @@ hf_oauth: true
12
  hf_oauth_expiration_minutes: 480
13
  ---
14
 
15
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
12
  hf_oauth_expiration_minutes: 480
13
  ---
14
 
15
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
16
+
17
+
18
+ username = chuby6
19
+ codelink = https://huggingface.co/spaces/chuby6/Final_Assignment_Template/tree/main
agent.py ADDED
@@ -0,0 +1 @@
 
 
1
+ # use a multimodal llm
prompt_template.py ADDED
File without changes
requirements.txt CHANGED
@@ -1,2 +1,7 @@
1
  gradio
2
- requests
 
 
 
 
 
 
1
  gradio
2
+ requests
3
+ llama-index-tools-brave-search
4
+ huggingface_hub
5
+ python-dotenv
6
+ llama-index
7
+ llama-index-llms-ollama
tools.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Define tools such as: Web search tool, image processing tool, language translation tool, video processing tool
2
+ from llama_index.tools.brave_search import BraveSearchToolSpec
3
+ from llama_index.core.tools import FunctionTool
4
+
5
+
6
+
7
+ def web_search_tool():
8
+