Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from googlesearch import search
|
|
8 |
from urllib.parse import parse_qs
|
9 |
|
10 |
def run_lora(prompt,site,start,end):
|
11 |
-
url = (f"https://www.google.com/search?q=site:{site}+{
|
12 |
f"&tbs=cdr:1,cd_min:{start},cd_max:{end}")
|
13 |
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'}
|
14 |
response = requests.get(url, headers=headers)
|
|
|
8 |
from urllib.parse import parse_qs
|
9 |
|
10 |
def run_lora(prompt,site,start,end):
|
11 |
+
url = (f"https://www.google.com/search?q=site:{site}+{prompt}"
|
12 |
f"&tbs=cdr:1,cd_min:{start},cd_max:{end}")
|
13 |
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36'}
|
14 |
response = requests.get(url, headers=headers)
|