adpro commited on
Commit
cf56984
·
verified ·
1 Parent(s): 2997260

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.dz/search?q=inurl:" +site + " " +prompt + "&tbs=cdr%3A1%2Ccd_min%3A"+start+"%2Ccd_max%3A" + end)
8
- print("https://www.google.dz/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")
 
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")