mdicio commited on
Commit
213b6d2
·
1 Parent(s): 8c5bbef

chroma hf api key?? really?

Browse files
Files changed (3) hide show
  1. agent.py +1 -0
  2. app.py +2 -1
  3. tools.py +3 -0
agent.py CHANGED
@@ -1,5 +1,6 @@
1
  import os
2
  from dotenv import load_dotenv
 
3
 
4
  # Import models from SmolaAgents
5
  from smolagents import CodeAgent, LiteLLMModel, OpenAIServerModel
 
1
  import os
2
  from dotenv import load_dotenv
3
+ load_dotenv()
4
 
5
  # Import models from SmolaAgents
6
  from smolagents import CodeAgent, LiteLLMModel, OpenAIServerModel
app.py CHANGED
@@ -11,7 +11,8 @@ from agent import BoomBot
11
  # --- Constants ---
12
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
13
 
14
-
 
15
  # --- Basic Agent Definition --
16
  class BasicAgent:
17
  def __init__(self):
 
11
  # --- Constants ---
12
  DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
13
 
14
+ from dotenv import load_dotenv
15
+ load_dotenv()
16
  # --- Basic Agent Definition --
17
  class BasicAgent:
18
  def __init__(self):
tools.py CHANGED
@@ -41,6 +41,9 @@ import requests
41
  from bs4 import BeautifulSoup
42
  from urllib.parse import quote_plus
43
 
 
 
 
44
  class ReadFileContentTool(Tool):
45
  name = "read_file_content"
46
  description = """Reads local files in various formats (text, CSV, Excel, PDF, HTML, etc.) and returns their content as readable text. Automatically detects and processes the appropriate file format."""
 
41
  from bs4 import BeautifulSoup
42
  from urllib.parse import quote_plus
43
 
44
+ from dotenv import load_dotenv
45
+ load_dotenv()
46
+
47
  class ReadFileContentTool(Tool):
48
  name = "read_file_content"
49
  description = """Reads local files in various formats (text, CSV, Excel, PDF, HTML, etc.) and returns their content as readable text. Automatically detects and processes the appropriate file format."""