tiantian-paris commited on
Commit
051bc0a
·
1 Parent(s): 4a82852
Gradio_UI.py CHANGED
@@ -273,6 +273,9 @@ class GradioUI:
273
  ),
274
  resizeable=True,
275
  scale=1,
 
 
 
276
  )
277
  # If an upload folder is provided, enable the upload feature
278
  if self.file_upload_folder is not None:
 
273
  ),
274
  resizeable=True,
275
  scale=1,
276
+ description="Interact with MyAgent, a custom chatbot powered by Qwen2.5-Coder-32B-Instruct.",
277
+ # Description
278
+ examples=["Calculate the VaR for returns: 0.1, -0.2, 0.05, -0.15, 0.3"], # Example inputs
279
  )
280
  # If an upload folder is provided, enable the upload feature
281
  if self.file_upload_folder is not None:
__pycache__/Gradio_UI.cpython-312.pyc CHANGED
Binary files a/__pycache__/Gradio_UI.cpython-312.pyc and b/__pycache__/Gradio_UI.cpython-312.pyc differ
 
app.py CHANGED
@@ -115,7 +115,7 @@ def provide_my_information(query: str) -> str:
115
  return "I'm sorry, I don't have information on that. Please ask about my name, location, occupation, education, skills, hobbies, or contact details."
116
 
117
 
118
- #qcm_tool = QCMTool("info/questions.json")
119
  final_answer = FinalAnswerTool()
120
  visit_webpage = VisitWebpageTool()
121
  web_search = DuckDuckGoSearchTool()
@@ -139,7 +139,7 @@ with open("prompts.yaml", 'r') as stream:
139
 
140
  agent = CodeAgent(
141
  model=model,
142
- tools=[final_answer,calculate_risk_metrics,visit_webpage,web_search,provide_my_information], ## add your tools here (don't remove final answer)
143
  max_steps=6,
144
  verbosity_level=1,
145
  grammar=None,
 
115
  return "I'm sorry, I don't have information on that. Please ask about my name, location, occupation, education, skills, hobbies, or contact details."
116
 
117
 
118
+ qcm_tool = QCMTool("info/questions.json")
119
  final_answer = FinalAnswerTool()
120
  visit_webpage = VisitWebpageTool()
121
  web_search = DuckDuckGoSearchTool()
 
139
 
140
  agent = CodeAgent(
141
  model=model,
142
+ tools=[final_answer,calculate_risk_metrics,qcm_tool,visit_webpage,web_search,provide_my_information], ## add your tools here (don't remove final answer)
143
  max_steps=6,
144
  verbosity_level=1,
145
  grammar=None,
tools/__pycache__/QCMTool.cpython-312.pyc ADDED
Binary file (5.25 kB). View file