Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ import gradio as gr
|
|
4 |
from bs4 import BeautifulSoup
|
5 |
|
6 |
def run_lora(prompt,site,start,end):
|
7 |
-
page = requests.get("https://www.google.
|
8 |
-
print("https://www.google.
|
9 |
soup = BeautifulSoup(page.content)
|
10 |
import re
|
11 |
links = soup.findAll("a")
|
|
|
4 |
from bs4 import BeautifulSoup
|
5 |
|
6 |
def run_lora(prompt,site,start,end):
|
7 |
+
page = requests.get("https://www.google.com/search?q=inurl:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
|
8 |
+
print("https://www.google.com/search?q=inurl:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
|
9 |
soup = BeautifulSoup(page.content)
|
10 |
import re
|
11 |
links = soup.findAll("a")
|