Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
|
@@ -11,11 +12,9 @@ from Gradio_UI import GradioUI
|
|
| 11 |
@tool
|
| 12 |
def generate_quote() -> str:
|
| 13 |
"""A tool that generates a random inspirational quote from Bruce Lee, 'The Art of War', or samurai philosophy.
|
| 14 |
-
|
| 15 |
-
Returns:
|
| 16 |
-
A string containing an inspirational quote.
|
| 17 |
"""
|
| 18 |
quotes = [
|
|
|
|
| 19 |
"Knowing is not enough; we must apply. Wishing is not enough; we must do. - Bruce Lee",
|
| 20 |
"The successful warrior is the average man, with laser-like focus. - Bruce Lee",
|
| 21 |
"In the midst of chaos, there is also opportunity. - Sun Tzu, The Art of War",
|
|
|
|
| 1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
| 2 |
import datetime
|
| 3 |
import requests
|
| 4 |
+
import random
|
| 5 |
import pytz
|
| 6 |
import yaml
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
| 12 |
@tool
|
| 13 |
def generate_quote() -> str:
|
| 14 |
"""A tool that generates a random inspirational quote from Bruce Lee, 'The Art of War', or samurai philosophy.
|
|
|
|
|
|
|
|
|
|
| 15 |
"""
|
| 16 |
quotes = [
|
| 17 |
+
"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"
|
| 18 |
"Knowing is not enough; we must apply. Wishing is not enough; we must do. - Bruce Lee",
|
| 19 |
"The successful warrior is the average man, with laser-like focus. - Bruce Lee",
|
| 20 |
"In the midst of chaos, there is also opportunity. - Sun Tzu, The Art of War",
|