ChIrish06 commited on
Commit
42c57d5
·
verified ·
1 Parent(s): 5fc1ab6

Update app.py

Browse files

Formatting for tool

Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -146,8 +146,13 @@ def summarize_and_answer_from_web(url: str, question:str) -> str:
146
 
147
  return summary, answer
148
  #return answer
149
-
150
- def tool_visit_webpage(url:str):
 
 
 
 
 
151
  vst = VisitWebpageTool()
152
  ret = vst(url)
153
  return ret
 
146
 
147
  return summary, answer
148
  #return answer
149
+ @tool
150
+ def tool_visit_webpage(url:str) -> str:
151
+ '''
152
+ A tool used to visit a webpage, and return the appropriate information from it
153
+ Args
154
+ url: A string url, the site to be visited
155
+ '''
156
  vst = VisitWebpageTool()
157
  ret = vst(url)
158
  return ret