Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,45 +35,45 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 35 |
|
| 36 |
@tool
|
| 37 |
def mirror_user(happy: str) -> str:
|
| 38 |
-
"""A tool that provides a smiley face if the user is happy or a sad face if the user is not. All this will return is "
|
|
|
|
| 39 |
Args:
|
| 40 |
happy: A string representing yes or no to indicate whether the user is happy with their results.
|
| 41 |
"""
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
|
|
|
|
|
|
| 72 |
|
| 73 |
-
|
| 74 |
-
print(row)
|
| 75 |
-
|
| 76 |
-
return
|
| 77 |
|
| 78 |
final_answer = FinalAnswerTool()
|
| 79 |
|
|
|
|
| 35 |
|
| 36 |
@tool
|
| 37 |
def mirror_user(happy: str) -> str:
|
| 38 |
+
"""A tool that provides a smiley face if the user is happy or a sad face if the user is not. All this will return is "Done" indicating
|
| 39 |
+
that the appropriate face has been shown to tell the user that you feel the same.
|
| 40 |
Args:
|
| 41 |
happy: A string representing yes or no to indicate whether the user is happy with their results.
|
| 42 |
"""
|
| 43 |
|
| 44 |
+
smiley = [
|
| 45 |
+
" OOOOOOOO ",
|
| 46 |
+
" O O ",
|
| 47 |
+
"O @ @ O",
|
| 48 |
+
"O O",
|
| 49 |
+
"O I O",
|
| 50 |
+
"O O",
|
| 51 |
+
"O O O O",
|
| 52 |
+
"O O O O",
|
| 53 |
+
" O ---- O ",
|
| 54 |
+
" OOOOOOOO "
|
| 55 |
+
]
|
| 56 |
+
sad_face = [
|
| 57 |
+
" OOOOOOOO ",
|
| 58 |
+
" O O ",
|
| 59 |
+
"O @ @ O",
|
| 60 |
+
"O O",
|
| 61 |
+
"O I O",
|
| 62 |
+
"O O",
|
| 63 |
+
"O ---- O",
|
| 64 |
+
"O / \ O",
|
| 65 |
+
" O O ",
|
| 66 |
+
" OOOOOOOO "
|
| 67 |
+
]
|
| 68 |
+
if happy == "yes":
|
| 69 |
+
face = smiley
|
| 70 |
+
else:
|
| 71 |
+
face = sad_face
|
| 72 |
+
|
| 73 |
+
for row in face:
|
| 74 |
+
print(row)
|
| 75 |
|
| 76 |
+
return("Done")
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
final_answer = FinalAnswerTool()
|
| 79 |
|