DTStudios commited on
Commit
001c7a6
·
verified ·
1 Parent(s): 54206fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -3,25 +3,11 @@ import datetime
3
  import requests
4
  import pytz
5
  import yaml
6
- import gradio as gr
7
  from tools.final_answer import FinalAnswerTool
8
 
9
- from smolagents import tool
10
 
11
- @tool
12
- def VisitWebpageTool(url: str) -> str:
13
- """
14
- Visit a webpage and return its HTML content.
15
 
16
- Args:
17
- url (str): The URL of the webpage to visit.
18
 
19
- Returns:
20
- str: The HTML content of the page.
21
- """
22
- import requests
23
- response = requests.get(url)
24
- return response.text
25
 
26
 
27
  @tool
 
3
  import requests
4
  import pytz
5
  import yaml
 
6
  from tools.final_answer import FinalAnswerTool
7
 
 
8
 
 
 
 
 
9
 
 
 
10
 
 
 
 
 
 
 
11
 
12
 
13
  @tool