HaiderAUT commited on
Commit
b16d9ad
·
verified ·
1 Parent(s): b3be6b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,6 +4,7 @@ import pytz
4
  import yaml
5
  from tools.final_answer import FinalAnswerTool
6
  from Gradio_UI import GradioUI
 
7
  from google import genai
8
  import os
9
  from dotenv import load_dotenv
@@ -31,7 +32,7 @@ else:
31
  # print(response.text)
32
  except Exception as e:
33
  print(f"Error configuring Gemini client: {e}")
34
-
35
 
36
  # Import AgentText to return a composite Markdown message
37
  from smolagents.agent_types import AgentText
@@ -203,6 +204,7 @@ model = HfApiModel(
203
  # Load prompt templates from a YAML file.
204
  with open("prompts.yaml", 'r') as stream:
205
  prompt_templates = yaml.safe_load(stream)
 
206
 
207
  # Create the CodeAgent including all our tools.
208
  agent = CodeAgent(
 
4
  import yaml
5
  from tools.final_answer import FinalAnswerTool
6
  from Gradio_UI import GradioUI
7
+ '''
8
  from google import genai
9
  import os
10
  from dotenv import load_dotenv
 
32
  # print(response.text)
33
  except Exception as e:
34
  print(f"Error configuring Gemini client: {e}")
35
+ '''
36
 
37
  # Import AgentText to return a composite Markdown message
38
  from smolagents.agent_types import AgentText
 
204
  # Load prompt templates from a YAML file.
205
  with open("prompts.yaml", 'r') as stream:
206
  prompt_templates = yaml.safe_load(stream)
207
+ print(prompt_templates)
208
 
209
  # Create the CodeAgent including all our tools.
210
  agent = CodeAgent(