huggingsamurai commited on
Commit
3336576
·
verified ·
1 Parent(s): eaa14fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -23,11 +23,7 @@ def my_custom_tool(arg1:str)-> str: #it's import to specify the return type
23
  }
24
  url = f"{base_url}?{urllib.parse.urlencode(params)}"
25
 
26
- headers = {
27
- "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
28
- "accept-language": "en-US,en;q=0.9",
29
- "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36",
30
- }
31
 
32
  try:
33
  response = requests.get(url, headers=headers)
 
23
  }
24
  url = f"{base_url}?{urllib.parse.urlencode(params)}"
25
 
26
+ headers = {"accept": "application/json"}
 
 
 
 
27
 
28
  try:
29
  response = requests.get(url, headers=headers)