sadidul012 commited on
Commit
25dad4d
1 Parent(s): f1b3791
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -34,15 +34,15 @@ graph_config = {
34
 
35
 
36
  def scrape_and_summarize(prompt, source):
37
- with open("file.html", "w") as file:
38
- file.write(html.unescape(source))
39
-
40
  # with open("file.html", "r") as file:
41
  # text = file.read()
42
  # return {"prompt": prompt}, {"source": text}
43
  smart_scraper_graph = SmartScraperGraph(
44
  prompt=prompt,
45
- source="file.html",
46
  # source=source,
47
  config=graph_config
48
  )
 
34
 
35
 
36
  def scrape_and_summarize(prompt, source):
37
+ # with open("file.html", "w") as file:
38
+ # file.write(html.unescape(source))
39
+ #
40
  # with open("file.html", "r") as file:
41
  # text = file.read()
42
  # return {"prompt": prompt}, {"source": text}
43
  smart_scraper_graph = SmartScraperGraph(
44
  prompt=prompt,
45
+ source=html.unescape(source),
46
  # source=source,
47
  config=graph_config
48
  )