Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ 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.dz/search?q=
|
8 |
soup = BeautifulSoup(page.content)
|
9 |
import re
|
10 |
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.dz/search?q=inurl:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+str(start)+"%2Ccd_max%3A" +str( end))
|
8 |
soup = BeautifulSoup(page.content)
|
9 |
import re
|
10 |
links = soup.findAll("a")
|