c1tr0n75 commited on
Commit
9364285
·
1 Parent(s): ef6bb1a

adding HF Token

Browse files
__pycache__/retriever.cpython-310.pyc ADDED
Binary file (2.05 kB). View file
 
__pycache__/tools.cpython-310.pyc ADDED
Binary file (2.34 kB). View file
 
app.py CHANGED
@@ -1,11 +1,14 @@
1
  import gradio as gr
2
  import random
3
  from smolagents import GradioUI, CodeAgent, HfApiModel
4
-
5
  # Import our custom tools from their modules
6
  from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool, GetLatestNewsTool
7
  from retriever import load_guest_dataset
8
 
 
 
 
9
  # Initialize the Hugging Face model
10
  model = HfApiModel()
11
 
 
1
  import gradio as gr
2
  import random
3
  from smolagents import GradioUI, CodeAgent, HfApiModel
4
+ from dotenv import load_dotenv
5
  # Import our custom tools from their modules
6
  from tools import DuckDuckGoSearchTool, WeatherInfoTool, HubStatsTool, GetLatestNewsTool
7
  from retriever import load_guest_dataset
8
 
9
+ load_dotenv()
10
+ hf_token = os.getenv("HF_TOKEN")
11
+
12
  # Initialize the Hugging Face model
13
  model = HfApiModel()
14