jamesbright commited on
Commit
e7b8eec
·
verified ·
1 Parent(s): 8a9455d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -10
app.py CHANGED
@@ -12,7 +12,7 @@ model = HfApiModel(
12
 
13
 
14
  class ProjectScopingTool(Tool):
15
- """
16
  Handles project scoping by collecting key details such as type, domain, budget, and timeline.
17
  """
18
  def __init__(self):
@@ -38,7 +38,7 @@ class ProjectScopingTool(Tool):
38
 
39
 
40
  class TechnicalArchitectureTool(Tool):
41
- """
42
  Determines the appropriate technical architecture based on the project type.
43
  """
44
  def generate_architecture(self, project_type):
@@ -63,7 +63,7 @@ class TechnicalArchitectureTool(Tool):
63
 
64
 
65
  class CostEstimationTool(Tool):
66
- """
67
  Estimates the cost based on the architecture complexity and timeline.
68
  """
69
  def estimate_project_cost(self, architecture_size, timeline_months):
@@ -77,7 +77,7 @@ class CostEstimationTool(Tool):
77
 
78
 
79
  class DeploymentTool(Tool):
80
- """
81
  Suggests a deployment strategy based on best practices.
82
  """
83
  def generate_deployment_strategy(self):
@@ -90,7 +90,7 @@ class DeploymentTool(Tool):
90
 
91
 
92
  class MeetingPreparationTool(Tool):
93
- """
94
  Provides meeting agendas depending on the project stage.
95
  """
96
  def generate_meeting_agenda(self, project_stage):
@@ -109,11 +109,11 @@ class MeetingPreparationTool(Tool):
109
  return json.dumps(agendas.get(project_stage, "No agenda found for this stage"), indent=2)
110
 
111
  # Instantiate tools
112
- scoping_tool = ProjectScopingTool(description ="Handles project scoping by collecting key details such as type, domain, budget, and timeline.")
113
- tech_arch_tool = TechnicalArchitectureTool(description="Determines the appropriate technical architecture based on the project type.")
114
- cost_tool = CostEstimationTool(description="Estimates the cost based on the architecture complexity and timeline.")
115
- deploy_tool = DeploymentTool(description="Suggests a deployment strategy based on best practices.")
116
- meeting_tool = MeetingPreparationTool(description=" Provides meeting agendas depending on the project stage.")
117
 
118
  # Define the agent
119
  tools = [
@@ -166,3 +166,4 @@ with gr.Blocks() as demo:
166
 
167
  # Launch the Gradio App
168
  demo(agent).launch()
 
 
12
 
13
 
14
  class ProjectScopingTool(Tool):
15
+ description = """
16
  Handles project scoping by collecting key details such as type, domain, budget, and timeline.
17
  """
18
  def __init__(self):
 
38
 
39
 
40
  class TechnicalArchitectureTool(Tool):
41
+ description = """
42
  Determines the appropriate technical architecture based on the project type.
43
  """
44
  def generate_architecture(self, project_type):
 
63
 
64
 
65
  class CostEstimationTool(Tool):
66
+ description = """
67
  Estimates the cost based on the architecture complexity and timeline.
68
  """
69
  def estimate_project_cost(self, architecture_size, timeline_months):
 
77
 
78
 
79
  class DeploymentTool(Tool):
80
+ description = """
81
  Suggests a deployment strategy based on best practices.
82
  """
83
  def generate_deployment_strategy(self):
 
90
 
91
 
92
  class MeetingPreparationTool(Tool):
93
+ description = """
94
  Provides meeting agendas depending on the project stage.
95
  """
96
  def generate_meeting_agenda(self, project_stage):
 
109
  return json.dumps(agendas.get(project_stage, "No agenda found for this stage"), indent=2)
110
 
111
  # Instantiate tools
112
+ scoping_tool = ProjectScopingTool()
113
+ tech_arch_tool = TechnicalArchitectureTool()
114
+ cost_tool = CostEstimationTool()
115
+ deploy_tool = DeploymentTool()
116
+ meeting_tool = MeetingPreparationTool()
117
 
118
  # Define the agent
119
  tools = [
 
166
 
167
  # Launch the Gradio App
168
  demo(agent).launch()
169
+