nmvega commited on
Commit
553d231
·
1 Parent(s): c0b5446
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -3,8 +3,14 @@ from tools.final_answer import FinalAnswerTool
3
  from Gradio_UI import GradioUI
4
  import os, sys, datetime, requests, pytz, yaml
5
  from dotenv import load_dotenv
6
- #
7
- load_dotenv(f"{os.path.expanduser("~")}/WORKSPACES.d/AGENTIC.GEN.AI.d/.env")
 
 
 
 
 
 
8
 
9
  # ============================================================================================
10
  # Here's an example of a tool that does nothing, but it shows the structure you should follow.
@@ -36,7 +42,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
36
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
37
 
38
 
39
- final_answer = FinalAnswerTool()
40
 
41
  # ================================================================================
42
  # If the agent does not answer, the model is likely overloaded. Please use a different model,
 
3
  from Gradio_UI import GradioUI
4
  import os, sys, datetime, requests, pytz, yaml
5
  from dotenv import load_dotenv
6
+
7
+ final_answer = FinalAnswerTool()
8
+
9
+ # ============================================================================================
10
+ # Uncomment when runnng locally. Leave comment when running atop HuggingFace Hub.
11
+ # ============================================================================================
12
+ # load_dotenv(f"{os.path.expanduser("~")}/WORKSPACES.d/AGENTIC.GEN.AI.d/.env")
13
+ # ============================================================================================
14
 
15
  # ============================================================================================
16
  # Here's an example of a tool that does nothing, but it shows the structure you should follow.
 
42
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
43
 
44
 
 
45
 
46
  # ================================================================================
47
  # If the agent does not answer, the model is likely overloaded. Please use a different model,