Spaces:
Runtime error
Runtime error
Commit ·
490ea78
1
Parent(s): c60061d
big text
Browse files35 unmodified lines3637383940414243444546473940414243444546474849505135 unmodified lines with 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) # 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 interface3 unmodified lines456789101112131478910111213143 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)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