Spaces:
Runtime error
Runtime error
Commit ·
490ea78
1
Parent(s): c60061d
big text
Browse files35 unmodified lines36373839404142434445464748495035 unmodified lineswith open("file.txt", "w") as file:file.write(html.unescape(source))return {"prompt": prompt}, {"source": source}# smart_scraper_graph = SmartScraperGraph(# prompt=prompt,# source=source,# config=graph_config# )# result = smart_scraper_graph.run()# exec_info = smart_scraper_graph.get_execution_info()# return result, prettify_exec_info(exec_info)# Gradio interface35 unmodified lines3637383940414243444546474849505135 unmodified lineswith open("file.txt", "w") as file:file.write(html.unescape(source))# return {"prompt": prompt}, {"source": source}smart_scraper_graph = SmartScraperGraph(prompt=prompt,source="file.txt",# source=source,config=graph_config)result = smart_scraper_graph.run()exec_info = smart_scraper_graph.get_execution_info()return result, prettify_exec_info(exec_info)# Gradio interface
3 unmodified lines4567891011121314153 unmodified lineswith open("/home/sadid-dl/html.txt", "r") as file:text = file.read()# client = Client("sadidul012/test-space")# result = client.predict(# prompt="List me all the press releases with their headlines and urls.",# source=html.escape(text),# api_name="/scrape_and_summarize"# )# print(result)text = html.escape(text)3 unmodified lines45678910111213143 unmodified lineswith open("/home/sadid-dl/html.txt", "r") as file:text = file.read()client = Client("sadidul012/test-space")result = client.predict(prompt="List me all the press releases with their headlines and urls.",source=html.escape(text),api_name="/scrape_and_summarize")print(result)
app.py+10-9
test.py+7-8