iarbel commited on
Commit
fa5fa99
1 Parent(s): eb8b262

chnage bs4 parser

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
2
  import pandas as pd
3
  from bs4 import BeautifulSoup
4
  from typing import Tuple
5
- import src.few_shot_funcs as fsf
6
 
 
7
  import src.scrape as scrape
8
 
9
 
@@ -16,7 +16,7 @@ def asin_to_pdp(asin_or_url: str) -> dict:
16
  raise gr.Error('You must provide a valid ASIN (10 char code) or URL')
17
 
18
  html = scrape.zyte_call(asin_url)
19
- asin_pdp = scrape.get_asin_pdp(BeautifulSoup(html, features="lxml"))
20
  return asin_pdp
21
 
22
 
 
2
  import pandas as pd
3
  from bs4 import BeautifulSoup
4
  from typing import Tuple
 
5
 
6
+ import src.few_shot_funcs as fsf
7
  import src.scrape as scrape
8
 
9
 
 
16
  raise gr.Error('You must provide a valid ASIN (10 char code) or URL')
17
 
18
  html = scrape.zyte_call(asin_url)
19
+ asin_pdp = scrape.get_asin_pdp(BeautifulSoup(html, 'html.parser'))
20
  return asin_pdp
21
 
22