Spaces:
Sleeping
Sleeping
Update app.py
Browse files1234564 unmodified lines1112131415161718192021from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,toolimport datetimeimport requestsimport pytzimport yamlfrom tools.final_answer import FinalAnswerTool4 unmodified lines@tooldef generate_quote() -> str:"""A tool that generates a random inspirational quote from Bruce Lee, 'The Art of War', or samurai philosophy.Returns:A string containing an inspirational quote."""quotes = ["Knowing is not enough; we must apply. Wishing is not enough; we must do. - Bruce Lee","The successful warrior is the average man, with laser-like focus. - Bruce Lee","In the midst of chaos, there is also opportunity. - Sun Tzu, The Art of War",12345674 unmodified lines121314151617181920from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,toolimport datetimeimport requestsimport randomimport pytzimport yamlfrom tools.final_answer import FinalAnswerTool4 unmodified lines@tooldef generate_quote() -> str:"""A tool that generates a random inspirational quote from Bruce Lee, 'The Art of War', or samurai philosophy."""quotes = ["Empty your mind, be formless, shapeless — like water. Now you put water in a cup, it becomes the cup; You put water in a bottle, it becomes the bottle; You put it in a teapot, it becomes the teapot. Now water can flow or it can crash. Be water, my friend. - Bruce Lee""Knowing is not enough; we must apply. Wishing is not enough; we must do. - Bruce Lee","The successful warrior is the average man, with laser-like focus. - Bruce Lee","In the midst of chaos, there is also opportunity. - Sun Tzu, The Art of War",
app.py+2-3